diag: rework sentence structure of MismatchedDynamicOffsetCount

Co-authored-by: Kevin Reid <kpreid@switchb.org>
This commit is contained in:
Erich GublerandKevin Reid authored and mergify[bot] committed 2026-09-17 15:43:18 +00:00
1 parent 27462da192
commit 535f5c67a1
2 files changed
+5 -5

No files matched your search

@@ -101,15 +101,15 @@ fn dynamic_offset_bounds_with_unordered_entries(ctx: TestingContext) {
(
&[0],
concat!(
"BindGroup with 'bg' label 0 expects 2 dynamic offsets. ",
"However 1 dynamic offset was provided.",
"BindGroup with 'bg' label at index 0 expects 2 dynamic offsets, but ",
"1 dynamic offset was provided",
),
),
(
&[0, align32, 0],
concat!(
"BindGroup with 'bg' label 0 expects 2 dynamic offsets. ",
"However 3 dynamic offsets were provided.",
"BindGroup with 'bg' label at index 0 expects 2 dynamic offsets, but ",
"3 dynamic offsets were provided",
),
),
];
+1 -1
View File
@@ -1609,7 +1609,7 @@ pub enum BindError {
)]
DynamicOffsetCountNotZero { group: u32, actual: usize },
#[error(
"{bind_group} {group} expects {expected} dynamic offset{s0}. However {actual} dynamic offset{s1} {to_be} provided.",
"{bind_group} at index {group} expects {expected} dynamic offset{s0}, but {actual} dynamic offset{s1} {to_be} provided",
s0 = if *.expected >= 2 { "s" } else { "" },
s1 = if *.actual >= 2 { "s" } else { "" },
to_be = if *.actual == 1 { "was" } else { "were" },