From 630d091a9da357d03ea0508cf38ac7ddb4aade16 Mon Sep 17 00:00:00 2001 From: Abhishek Chandramouli Sharma Date: Fri, 1 Oct 2021 20:34:37 -0700 Subject: [PATCH] Fixing some broken structure links in the documentation --- boa/src/syntax/lexer/mod.rs | 2 +- boa/src/syntax/lexer/token.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boa/src/syntax/lexer/mod.rs b/boa/src/syntax/lexer/mod.rs index 8c13d209508..dcdfd0a1fd4 100644 --- a/boa/src/syntax/lexer/mod.rs +++ b/boa/src/syntax/lexer/mod.rs @@ -3,7 +3,7 @@ //! This module contains the Boa lexer or tokenizer implementation. //! //! The Lexer splits its input source code into a sequence of input elements called tokens, -//! represented by the [Token](../ast/token/struct.Token.html) structure. It also removes +//! represented by the [Token](./token/struct.Token.html) structure. It also removes //! whitespace and comments and attaches them to the next token. //! //! This is tightly coupled with the parser due to the javascript goal-symbol requirements diff --git a/boa/src/syntax/lexer/token.rs b/boa/src/syntax/lexer/token.rs index ecbb2c8c0e2..98967a66d37 100644 --- a/boa/src/syntax/lexer/token.rs +++ b/boa/src/syntax/lexer/token.rs @@ -108,7 +108,7 @@ pub enum TokenKind { /// A keyword. /// - /// see: [`Keyword`](../keyword/enum.Keyword.html) + /// see: [`Keyword`](../../ast/keyword/enum.Keyword.html) Keyword(Keyword), /// A `null` literal. @@ -119,7 +119,7 @@ pub enum TokenKind { /// A piece of punctuation /// - /// see: [`Punctuator`](../punc/enum.Punctuator.html) + /// see: [`Punctuator`](../../ast/punctuator/enum.Punctuator.html) Punctuator(Punctuator), /// A string literal.