aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Richter2022-09-10 05:14:03 +0000
committerGitHub2022-09-10 05:14:03 +0000
commit01ee42bb149adee2fe17561806d9525370c84ef4 (patch)
tree6e42adf2d39b3f3cbfcf620e82dc47c27960dbee
parentfae9203c3efd4dee4ac0234090ab9c3163c3e4f7 (diff)
ordinals instead of indexes when listing grammar fetch errors (#3773)
-rw-r--r--helix-loader/src/grammar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
index 98a93e56..eb1895a5 100644
--- a/helix-loader/src/grammar.rs
+++ b/helix-loader/src/grammar.rs
@@ -139,7 +139,7 @@ pub fn fetch_grammars() -> Result<()> {
let len = errors.len();
println!("{} grammars failed to fetch", len);
for (i, error) in errors.into_iter().enumerate() {
- println!("\tFailure {}/{}: {}", i, len, error);
+ println!("\tFailure {}/{}: {}", i + 1, len, error);
}
}