Change "an when" to "a when" in error message

This commit is contained in:
Richard Feldman 2022-07-24 19:15:51 -04:00
parent a1a3eff278
commit d4f192ffd6
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

@ -358,7 +358,7 @@ fn to_expr_report<'a>(
Node::WhenCondition | Node::WhenBranch | Node::WhenIfGuard => ( Node::WhenCondition | Node::WhenBranch | Node::WhenIfGuard => (
pos, pos,
alloc.concat([ alloc.concat([
alloc.text("an "), alloc.text("a "),
alloc.keyword("when"), alloc.keyword("when"),
alloc.text(" expression"), alloc.text(" expression"),
]), ]),