Skip to content

Commit d3cc2f8

Browse files
diag(wgsl-in): add backticks code-ish display params.
1 parent 746a3ec commit d3cc2f8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

naga/src/front/wgsl/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -911,11 +911,11 @@ impl<'a> Error<'a> {
911911
labels: vec![
912912
(
913913
dest_span,
914-
format!("a value of type {dest_type} is required here").into(),
914+
format!("a value of type `{dest_type}` is required here").into(),
915915
),
916916
(
917917
source_span,
918-
format!("this expression has type {source_type}").into(),
918+
format!("this expression has type `{source_type}`").into(),
919919
),
920920
],
921921
notes: vec![],
@@ -937,14 +937,14 @@ impl<'a> Error<'a> {
937937
(
938938
dest_span,
939939
format!(
940-
"a value with elements of type {} is required here",
940+
"a value with elements of type `{}` is required here",
941941
dest_scalar
942942
)
943943
.into(),
944944
),
945945
(
946946
source_span,
947-
format!("this expression has type {source_type}").into(),
947+
format!("this expression has type `{source_type}`").into(),
948948
),
949949
],
950950
notes: vec![],

0 commit comments

Comments
 (0)