Skip to content

Commit

Permalink
Fix ducumentation links in pango-lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
exellentcoin26 committed Aug 28, 2023
1 parent 31883c9 commit 217f353
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pango-lexer/src/fsm/nfa/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand All @@ -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
///
Expand Down
2 changes: 1 addition & 1 deletion pango-lexer/src/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl<TokenKind> Default for LexerGenerator<TokenKind> {
}

impl<TokenKind> LexerGenerator<TokenKind> {
/// Creates a new empty [`LexerBuilder`].
/// Creates a new empty [`LexerGenerator`].
pub fn new() -> Self {
Self::default()
}
Expand Down
2 changes: 1 addition & 1 deletion pango-lexer/src/regex/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ast::Ast> {
if self.tokens.peek().is_none() {
return Ok(Ast(ast::ExprKind::Empty));
Expand Down

0 comments on commit 217f353

Please sign in to comment.