Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
line_indicies -> line_indices

Signed-off-by: Ikko Eltociear Ashimine <[email protected]>
  • Loading branch information
eltociear authored Feb 11, 2024
1 parent a0cbb54 commit 1084909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/parser/src/tokenizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1084909

Please sign in to comment.