about summary refs log tree commit diff
path: root/src/test/ui/pattern
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-17 18:18:59 +0200
committerGitHub <noreply@github.com>2021-10-17 18:18:59 +0200
commite0e2b3cc434cc86f3aa36dd8e99e84d3416b88d8 (patch)
treed5da247b03326144c5c3e22a8f6bc43c35bf0aec /src/test/ui/pattern
parent0f1ba8d8c786f625934908d7681f9779e21668b5 (diff)
parent3c1d55422a695204b70cbd23da582e3ab770a53c (diff)
downloadrust-e0e2b3cc434cc86f3aa36dd8e99e84d3416b88d8.tar.gz
rust-e0e2b3cc434cc86f3aa36dd8e99e84d3416b88d8.zip
Rollup merge of #89963 - r00ster91:parenthesisparentheses, r=nagisa
Some "parenthesis" and "parentheses" fixes

"Parenthesis" is the singular (e.g. one `(` or one `)`) and "parentheses" is the plural (multiple `(` or `)`s) and this is not hard to mix up so here are some fixes for that.

Inspired by #89958
Diffstat (limited to 'src/test/ui/pattern')
-rw-r--r--src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs b/src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs
index a3023ee906d..ae28c140375 100644
--- a/src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs
+++ b/src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs
@@ -5,7 +5,7 @@
 // the tuple struct pattern, has 0 fields, but requires 1 field.
 //
 // In emitting E0023, we try to see if this is a case of e.g., `Some(a, b, c)` but where
-// the scrutinee was of type `Some((a, b, c))`, and suggest that parenthesis be added.
+// the scrutinee was of type `Some((a, b, c))`, and suggest that parentheses be added.
 //
 // However, we did not account for the expected type being different than the tuple pattern type.
 // This caused an issue when the tuple pattern type (`P<T>`) was generic.