2 releases
0.1.1 | Jul 14, 2022 |
---|---|
0.1.0 | Jul 14, 2022 |
#175 in #console
568 downloads per month
Used in 19 crates
(6 directly)
16KB
97 lines
Highlight Error
Rust util that highlights an error.
Example
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: