Some "parenthesis" and "parentheses" fixes

This commit is contained in:
r00ster91
2021-10-17 12:04:01 +02:00
parent 7fbd4ce276
commit 3c1d55422a
30 changed files with 100 additions and 100 deletions

View File

@@ -430,7 +430,7 @@ impl<'a> Parser<'a> {
}
// Parses the `typeof(EXPR)`.
// To avoid ambiguity, the type is surrounded by parenthesis.
// To avoid ambiguity, the type is surrounded by parentheses.
fn parse_typeof_ty(&mut self) -> PResult<'a, TyKind> {
self.expect(&token::OpenDelim(token::Paren))?;
let expr = self.parse_anon_const_expr()?;