From 24ca1b433015e4659bc43c29644f17d22315646b Mon Sep 17 00:00:00 2001 From: Evan Richter Date: Fri, 9 Sep 2022 21:14:53 -0500 Subject: [PATCH] ordinals instead of indexes when listing grammar fetch errors --- helix-loader/src/grammar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs index 98a93e56ce9e..eb1895a554c6 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); } }