Skip to content

Commit

Permalink
Merge #27
Browse files Browse the repository at this point in the history
27: More typos and doc cleanup r=brson a=brson



Co-authored-by: Brian Anderson <[email protected]>
  • Loading branch information
bors[bot] and brson authored Jan 11, 2022
2 parents 3ebc34f + 15c1073 commit c092bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/dada-lex/src/lex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ where
.accumulate(ch, |c| matches!(c, 'a'..='z' | 'A'..='Z' | '_' | '0'..='9'));

// Check what comes next to decide if this is
// a "prefix" like `r'foo"` or an identifier `r`.
// a "prefix" like `r"foo"` or an identifier `r`.
let is_prefix = self
.chars
.peek()
Expand Down
2 changes: 1 addition & 1 deletion components/dada-parse/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<'me> Parser<'me> {
}
}

/// Returns Some if the next pending token matches `is`, along
/// Returns `Some` if the next pending token matches `is`, along
/// with the narrowed view of the next token.
fn peek<TT: TokenTest>(&mut self, test: TT) -> Option<TT::Narrow> {
test.test(self.db, self.tokens.peek()?)
Expand Down

0 comments on commit c092bee

Please sign in to comment.