fix: using the word pattern here reads better and applies more broadly like for lists

This commit is contained in:
rvcas 2023-11-28 16:15:24 -05:00
parent a46a7e82b7
commit 2159053cb5
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ If you really meant to return that last expression, try to replace it with the f
}, },
#[error("{}\n", if *is_let { #[error("{}\n", if *is_let {
"I noticed a let assignment matching a value with more than one constructor.".to_string() "I noticed a let assignment matching a value with more than one pattern.".to_string()
} else { } else {
format!( format!(
"I realized that a given '{keyword_when}/{keyword_is}' expression is non-exhaustive.", "I realized that a given '{keyword_when}/{keyword_is}' expression is non-exhaustive.",