diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-10 16:04:06 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-10 16:04:06 +0000 |
commit | 13b205ec0bd403246937f89697895b2029454598 (patch) | |
tree | 7509caa3a1de56469450024bcc7b231a83d2cb6f /crates/syntax/src | |
parent | e1430d822e20635170c8da92b928d4d89dd1f680 (diff) | |
parent | 10e7fd25feb96f7fe5b82864374833ebf273fa2f (diff) |
Merge #7238
7238: Fix typo, parentheses is plural r=lnicola a=lnicola
bors r+
Co-authored-by: Laurențiu Nicola <[email protected]>
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 | } |