Skip to content

Commit 0552ac2

Browse files
diag(core): parenthesize "s" in TooMany{MipLevels,ArrayLayers} msg.
1 parent e5180aa commit 0552ac2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wgpu-core/src/resource.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ pub enum CreateTextureViewError {
18391839
ZeroArrayLayerCount,
18401840
#[error(
18411841
"`TextureView` starts at mip level {base_mip_level} and spans {mip_level_count} mip \
1842-
levels, but the texture view only has {total} total mip levels"
1842+
levels, but the texture view only has {total} total mip level(s)"
18431843
)]
18441844
TooManyMipLevels {
18451845
base_mip_level: u32,
@@ -1848,7 +1848,7 @@ pub enum CreateTextureViewError {
18481848
},
18491849
#[error(
18501850
"`TextureView` starts at array layer {base_array_layer} and spans {array_layer_count}) \
1851-
array layers, but the texture view only has {total} total layers"
1851+
array layers, but the texture view only has {total} total layer(s)"
18521852
)]
18531853
TooManyArrayLayers {
18541854
base_array_layer: u32,

0 commit comments

Comments
 (0)