mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 01:50:32 +00:00
Fix typo, parentheses is plural
This commit is contained in:
parent
035fed5f9f
commit
10e7fd25fe
10 changed files with 135 additions and 135 deletions
|
@ -344,9 +344,9 @@ fn validate_trait_object_ty(ty: ast::DynTraitType) -> Option<SyntaxError> {
|
|||
|
||||
if tbl.bounds().count() > 1 {
|
||||
let dyn_token = ty.dyn_token()?;
|
||||
let potential_parentheses =
|
||||
let potential_parenthesis =
|
||||
algo::skip_trivia_token(dyn_token.prev_token()?, Direction::Prev)?;
|
||||
let kind = potential_parentheses.kind();
|
||||
let kind = potential_parenthesis.kind();
|
||||
if !matches!(kind, T!['('] | T![<] | T![=]) {
|
||||
return Some(SyntaxError::new("ambiguous `+` in a type", ty.syntax().text_range()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue