docs(oxc_parser): add header symbol for parser.unexpected

This commit is contained in:
Xuan 2023-02-17 19:33:21 +08:00 committed by Boshen
parent a347e3993e
commit 362c02f8e1

View file

@ -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<T>(&self) -> Result<T> {
// The lexer should have reported a more meaningful diagnostic