Improve expected error message

This commit is contained in:
imaqtkatt 2024-05-20 08:31:46 -03:00
parent 33756cbd3a
commit 01346ed84f

View File

@ -129,7 +129,7 @@ impl<'a> PyParser<'a> {
} else if self.try_consume(":") {
self.parse_map_init(head)?
} else {
self.expected("Comma or Colon")?
self.expected("',' or ':'")?
}
}
// List or Comprehension