From 362c02f8e1cffeb68684c2341bee208634203b8b Mon Sep 17 00:00:00 2001 From: Xuan <97ssps30212@gmail.com> Date: Fri, 17 Feb 2023 19:33:21 +0800 Subject: [PATCH] docs(oxc_parser): add header symbol for parser.unexpected --- crates/oxc_parser/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_parser/src/lib.rs b/crates/oxc_parser/src/lib.rs index e52e5091d..46e960a47 100644 --- a/crates/oxc_parser/src/lib.rs +++ b/crates/oxc_parser/src/lib.rs @@ -123,7 +123,7 @@ impl<'a> Parser<'a> { } /// Return error info at current token - /// Panics + /// # Panics /// * The lexer did not push a diagnostic when `Kind::Undetermined` is returned fn unexpected(&self) -> Result { // The lexer should have reported a more meaningful diagnostic