forked from M-Labs/nac3
1
0
Fork 0

fix error message string (2)

This commit is contained in:
Sebastien Bourdeauducq 2022-03-02 08:33:10 +08:00
parent da039e3acf
commit 59ac5aae8a
1 changed files with 1 additions and 1 deletions

View File

@ -923,7 +923,7 @@ impl<'a> Inferencer<'a> {
(Some((ty, true)), _) => Ok(*ty),
(Some((ty, false)), false) => Ok(*ty),
(Some((_, false)), true) => {
report_error(&format!("Field {} should be immutable", attr), value.location)
report_error(&format!("Field `{}` is immutable", attr), value.location)
}
(None, _) => {
let t = self.unifier.stringify(ty);