chore: field might not always need to be plural
This commit is contained in:
parent
99a334b132
commit
59ef63b513
|
@ -62,7 +62,7 @@ pub enum Error {
|
||||||
given: usize,
|
given: usize,
|
||||||
},
|
},
|
||||||
|
|
||||||
#[error("I saw a pattern on a constructor that has {} fields be matched with {} arguments.\n", expected.purple(), given.len().purple())]
|
#[error("I saw a pattern on a constructor that has {} field(s) be matched with {} arguments.\n", expected.purple(), given.len().purple())]
|
||||||
IncorrectPatternArity {
|
IncorrectPatternArity {
|
||||||
location: Span,
|
location: Span,
|
||||||
expected: usize,
|
expected: usize,
|
||||||
|
|
Loading…
Reference in New Issue