diff options
author | Laurențiu Nicola <[email protected]> | 2021-01-10 15:56:53 +0000 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-01-10 15:56:53 +0000 |
commit | 10e7fd25feb96f7fe5b82864374833ebf273fa2f (patch) | |
tree | f8ccb57d183ed7f3d7b99282358f323c6d97edec /crates/syntax/src | |
parent | 035fed5f9f7c062da7d23190dab1a7021fd48a5d (diff) |
Fix typo, parentheses is plural
Diffstat (limited to 'crates/syntax/src')
-rw-r--r-- | crates/syntax/src/validation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/syntax/src/validation.rs b/crates/syntax/src/validation.rs index 2ddaeb176..7f9088382 100644 --- a/crates/syntax/src/validation.rs +++ b/crates/syntax/src/validation.rs | |||
@@ -344,9 +344,9 @@ fn validate_trait_object_ty(ty: ast::DynTraitType) -> Option<SyntaxError> { | |||
344 | 344 | ||
345 | if tbl.bounds().count() > 1 { | 345 | if tbl.bounds().count() > 1 { |
346 | let dyn_token = ty.dyn_token()?; | 346 | let dyn_token = ty.dyn_token()?; |
347 | let potential_parentheses = | 347 | let potential_parenthesis = |
348 | algo::skip_trivia_token(dyn_token.prev_token()?, Direction::Prev)?; | 348 | algo::skip_trivia_token(dyn_token.prev_token()?, Direction::Prev)?; |
349 | let kind = potential_parentheses.kind(); | 349 | let kind = potential_parenthesis.kind(); |
350 | if !matches!(kind, T!['('] | T![<] | T![=]) { | 350 | if !matches!(kind, T!['('] | T![<] | T![=]) { |
351 | return Some(SyntaxError::new("ambiguous `+` in a type", ty.syntax().text_range())); | 351 | return Some(SyntaxError::new("ambiguous `+` in a type", ty.syntax().text_range())); |
352 | } | 352 | } |