Skip to content

Commit

Permalink
diag(naga): add def. article and noun qual. to `DirectiveNotYetImplem…
Browse files Browse the repository at this point in the history
…ented`
  • Loading branch information
ErichDonGubler committed Oct 23, 2024
1 parent fc0a488 commit 77a757b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion naga/src/front/wgsl/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ impl<'a> Error<'a> {
},
Error::DirectiveNotYetImplemented { kind, span } => ParseError {
message: format!(
"`{}` is not yet implemented",
"the `{}` directive is not yet implemented",
DirectiveKind::Unimplemented(kind).to_ident()
),
labels: vec![(
Expand Down
2 changes: 1 addition & 1 deletion naga/src/front/wgsl/parse/directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ mod test {
UnimplementedDirectiveKind::Diagnostic => {
shader = "diagnostic(off,derivative_uniformity);";
expected_msg = "\
error: `diagnostic` is not yet implemented
error: the `diagnostic` directive is not yet implemented
┌─ wgsl:1:1
1 │ diagnostic(off,derivative_uniformity);
Expand Down

0 comments on commit 77a757b

Please sign in to comment.