Skip to content

Commit fc20b78

Browse files
authored
Fix typo in rustc_lexer docs
Also add an Oxford comma while we're editing that line.
1 parent 0f9f0b3 commit fc20b78

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_lexer/src

1 file changed

+1
-1
lines changed

compiler/rustc_lexer/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! The idea with `librustc_lexer` is to make a reusable library,
44
//! by separating out pure lexing and rustc-specific concerns, like spans,
5-
//! error reporting an interning. So, rustc_lexer operates directly on `&str`,
5+
//! error reporting, and interning. So, rustc_lexer operates directly on `&str`,
66
//! produces simple tokens which are a pair of type-tag and a bit of original text,
77
//! and does not report errors, instead storing them as flags on the token.
88
//!

0 commit comments

Comments
 (0)