Fix typo in error message (#1150)

This commit is contained in:
Arnaud Golfouse authored and GitHub committed 2021-07-29 22:57:27 -04:00
1 parent fa05f0d0d9
commit e0efe34402
1 file changed
+1 -1
+1 -1
View File
@@ -163,7 +163,7 @@ impl<'a> Error<'a> {
ExpectedToken::PrimaryExpression => "expression".to_string(),
ExpectedToken::AttributeSeparator => "attribute separator (',') or an end of the attribute list (']]')".to_string(),
ExpectedToken::FieldName => "field name or a closing curly bracket to signify the end of the struct".to_string(),
ExpectedToken::TypeAttribute => "type attribute ('access' or 'stride') or and of the attribute list (']]')".to_string(),
ExpectedToken::TypeAttribute => "type attribute ('access' or 'stride') or an end of the attribute list (']]')".to_string(),
ExpectedToken::Statement => "statement".to_string(),
ExpectedToken::SwitchItem => "switch item ('case' or 'default') or a closing curly bracket to signify the end of the switch statement ('}')".to_string(),
ExpectedToken::WorkgroupSizeSeparator => "workgroup size separator (',') or a closing parenthesis".to_string(),