From 1084909db137a4d169bf255b2aee43d9254a4f61 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sun, 11 Feb 2024 13:34:06 +0900 Subject: [PATCH] Update mod.rs line_indicies -> line_indices Signed-off-by: Ikko Eltociear Ashimine --- compiler/parser/src/tokenizer/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/parser/src/tokenizer/mod.rs b/compiler/parser/src/tokenizer/mod.rs index 6942e78a22..27b0dc5d61 100644 --- a/compiler/parser/src/tokenizer/mod.rs +++ b/compiler/parser/src/tokenizer/mod.rs @@ -193,10 +193,10 @@ ppp test let sm = &s.source_map; let sf = sm.new_source(raw, FileName::Custom("test".into())); let tokens = tokenize(&sf.src, sf.start_pos).unwrap(); - let mut line_indicies = vec![0]; + let mut line_indices = vec![0]; for (i, c) in raw.chars().enumerate() { if c == '\n' { - line_indicies.push(i + 1); + line_indices.push(i + 1); } } for token in tokens.iter() {