diff --git a/pango-lexer/src/fsm/nfa/model.rs b/pango-lexer/src/fsm/nfa/model.rs index b0b09ee..f0bf32b 100644 --- a/pango-lexer/src/fsm/nfa/model.rs +++ b/pango-lexer/src/fsm/nfa/model.rs @@ -211,7 +211,7 @@ impl NfaBuilder { self } - /// Creates a transition between two states using their [`StateIds`]. + /// Creates a transition between two states using their [`StateId`]s. /// /// # Panics /// @@ -228,7 +228,7 @@ impl NfaBuilder { id } - /// Creates a transition between two states using their [`StateIds`]. + /// Creates a transition between two states using their [`StateId`]s. /// /// # Panics /// diff --git a/pango-lexer/src/lexer/mod.rs b/pango-lexer/src/lexer/mod.rs index 331f8d0..17f2f03 100644 --- a/pango-lexer/src/lexer/mod.rs +++ b/pango-lexer/src/lexer/mod.rs @@ -149,7 +149,7 @@ impl Default for LexerGenerator { } impl LexerGenerator { - /// Creates a new empty [`LexerBuilder`]. + /// Creates a new empty [`LexerGenerator`]. pub fn new() -> Self { Self::default() } diff --git a/pango-lexer/src/regex/parser.rs b/pango-lexer/src/regex/parser.rs index 2ddcceb..05eb250 100644 --- a/pango-lexer/src/regex/parser.rs +++ b/pango-lexer/src/regex/parser.rs @@ -94,7 +94,7 @@ impl<'a> Parser<'a> { /// Parses the `input` into a regex [`Ast`]. /// - /// [`Ast`]: regex::Ast + /// [`Ast`]: super::ast::Ast pub(crate) fn parse(&mut self) -> ParseResult { if self.tokens.peek().is_none() { return Ok(Ast(ast::ExprKind::Empty));