From f08572729c29aa1e06606ea7cac1d33c80322d68 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Sat, 3 Jan 2026 09:18:51 -0700 Subject: [PATCH] diag(core): parenthesize "s" in `TooMany{MipLevels,ArrayLayers}` msg. --- wgpu-core/src/resource.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-core/src/resource.rs b/wgpu-core/src/resource.rs index a4eead703..be5096dc0 100644 --- a/wgpu-core/src/resource.rs +++ b/wgpu-core/src/resource.rs @@ -1839,7 +1839,7 @@ pub enum CreateTextureViewError { ZeroArrayLayerCount, #[error( "`TextureView` starts at mip level {base_mip_level} and spans {mip_level_count} mip \ - levels, but the texture view only has {total} total mip levels" + levels, but the texture view only has {total} total mip level(s)" )] TooManyMipLevels { base_mip_level: u32, @@ -1848,7 +1848,7 @@ pub enum CreateTextureViewError { }, #[error( "`TextureView` starts at array layer {base_array_layer} and spans {array_layer_count}) \ - array layers, but the texture view only has {total} total layers" + array layers, but the texture view only has {total} total layer(s)" )] TooManyArrayLayers { base_array_layer: u32,