Skip to content

Commit

Permalink
chore: fix typo (#1627)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven authored Dec 4, 2023
1 parent 32504ca commit bb4a2c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/prettier_conformance/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ impl VisitMut<'_> for SpecParser {
Expression::Identifier(_) => {
let start = "const parser = [";
let end = "];";
let start =
self.source_text.find(start).expect(&self.source_text) + start.len();
let start = self.source_text.find(start).unwrap() + start.len();
let end = self.source_text.find(end).unwrap();
parsers = self.source_text[start..end]
.split(',')
Expand Down

0 comments on commit bb4a2c7

Please sign in to comment.