| Crates.io | highlight_error |
| lib.rs | highlight_error |
| version | 0.1.1 |
| created_at | 2022-07-14 18:47:45.442502+00 |
| updated_at | 2022-07-14 19:06:58.067486+00 |
| description | Highlights an error for printing |
| homepage | |
| repository | https://github.com/VictorTaelin/rust_highlight_error |
| max_upload_size | |
| id | 625843 |
| size | 18,302 |
Rust util that highlights an error.
The code below:
fn main() {
let code = "functon is_zero (x) {
if (x == 0) [
return true;
] else {
return false;
}
}";
println!("{}", highlight_error::highlight_error(38, 64, &code));
}
Will output: