From 01ee42bb149adee2fe17561806d9525370c84ef4 Mon Sep 17 00:00:00 2001
From: Evan Richter
Date: Sat, 10 Sep 2022 00:14:03 -0500
Subject: ordinals instead of indexes when listing grammar fetch errors (#3773)

---
 helix-loader/src/grammar.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'helix-loader/src')

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);
         }
     }
 
-- 
cgit v1.2.3-70-g09d2