Skip to content

Commit 3f90287

Browse files
authored
Rollup merge of #73856 - pierwill:pierwill-lexer-doc, r=jonas-schievink
Edit librustc_lexer top-level docs Minor edit, and adds link to librustc_parse::lexer.
2 parents 218d96e + 36e50a0 commit 3f90287

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/librustc_lexer/src/lib.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
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
//!
9-
//! Tokens produced by this lexer are not yet ready for parsing the Rust syntax,
10-
//! for that see `librustc_parse::lexer`, which converts this basic token stream
9+
//! Tokens produced by this lexer are not yet ready for parsing the Rust syntax.
10+
//! For that see [`librustc_parse::lexer`], which converts this basic token stream
1111
//! into wide tokens used by actual parser.
1212
//!
1313
//! The purpose of this crate is to convert raw sources into a labeled sequence
1414
//! of well-known token types, so building an actual Rust token stream will
1515
//! be easier.
1616
//!
17-
//! Main entity of this crate is [`TokenKind`] enum which represents common
17+
//! The main entity of this crate is the [`TokenKind`] enum which represents common
1818
//! lexeme types.
19-
19+
//!
20+
//! [`librustc_parse::lexer`]: ../rustc_parse/lexer/index.html
2021
// We want to be able to build this crate with a stable compiler, so no
2122
// `#![feature]` attributes should be added.
2223

0 commit comments

Comments
 (0)