fix: using the word pattern here reads better and applies more broadly like for lists
This commit is contained in:
parent
a46a7e82b7
commit
2159053cb5
|
@ -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.",
|
||||||
|
|
Loading…
Reference in New Issue