Skip to content

Commit

Permalink
fix: ForwardSlash span collection (FuelLabs#2625)
Browse files Browse the repository at this point in the history
  • Loading branch information
kayagokalp authored Aug 25, 2022
1 parent a9e7620 commit f7b346e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway-parse/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pub fn lex_commented(
} else {
Spacing::Alone
};
let span = Span::new(src.clone(), start, end, path.clone()).unwrap();
let span = Span::new(src.clone(), index, end, path.clone()).unwrap();
let punct = Punct {
kind: PunctKind::ForwardSlash,
spacing,
Expand Down

0 comments on commit f7b346e

Please sign in to comment.