diff --git a/wright/src/parser.rs b/wright/src/parser.rs index 85758669..57f14181 100644 --- a/wright/src/parser.rs +++ b/wright/src/parser.rs @@ -1,6 +1,7 @@ //! This parser module is responsible for turning the stream of [Token]s from the [Lexer] into a tree of [AST] nodes. //! //! [AST]: crate::ast +//! [Token]: crate::lexer::token::Token use super::lexer::Lexer; use error::ParserError; diff --git a/wright/src/parser/error.rs b/wright/src/parser/error.rs index 4503f540..6f8413f6 100644 --- a/wright/src/parser/error.rs +++ b/wright/src/parser/error.rs @@ -8,7 +8,7 @@ use std::borrow::Cow; /// All the different errors that can be produced in the process of parsing. /// The names of these should be self-describing, but in cases when one of these needs to appear in a diagnostic, -/// use [ParserErrorKind::description]. +/// use [ParserErrorKind::find_description]. #[allow(missing_docs)] #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum ParserErrorKind {