mirror of
https://github.com/AleoHQ/leo.git
synced 2024-09-21 12:07:56 +03:00
Update mod.rs
line_indicies -> line_indices Signed-off-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
This commit is contained in:
parent
a0cbb5490f
commit
1084909db1
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user