We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lineno
1 parent ee9e620 commit 955b268Copy full SHA for 955b268
src/tools/jsondocck/src/main.rs
@@ -76,8 +76,8 @@ fn get_directives(template: &str) -> Result<Vec<Directive>, ()> {
76
let mut errors = false;
77
let file = fs::read_to_string(template).unwrap();
78
79
- for (lineno, line) in file.split('\n').enumerate() {
80
- let lineno = lineno + 1;
+ for (mut lineno, line) in file.split('\n').enumerate() {
+ lineno += 1;
81
82
if DEPRECATED_LINE_PATTERN.is_match(line) {
83
print_err("Deprecated directive syntax, replace `// @` with `//@ `", lineno);
0 commit comments