Skip to content

Commit 4e30a92

Browse files
diag(core): add backticks for code-like things in TooMany{MipLevels,ArrayLayers}
1 parent d29383b commit 4e30a92

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

wgpu-core/src/resource.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,8 +1838,8 @@ pub enum CreateTextureViewError {
18381838
#[error("Array layer count is 0")]
18391839
ZeroArrayLayerCount,
18401840
#[error(
1841-
"TextureView spans mip levels [{base_mip_level}, {end_mip_level}) \
1842-
(mipLevelCount {mip_level_count}) but the texture view only has {total} total mip levels",
1841+
"`TextureView` spans mip levels [{base_mip_level}, {end_mip_level}) \
1842+
(`mipLevelCount` {mip_level_count}) but the texture view only has {total} total mip levels",
18431843
end_mip_level = base_mip_level + mip_level_count
18441844
)]
18451845
TooManyMipLevels {
@@ -1848,8 +1848,8 @@ pub enum CreateTextureViewError {
18481848
total: u32,
18491849
},
18501850
#[error(
1851-
"TextureView spans array layers [{base_array_layer}, {end_array_layer}) \
1852-
(arrayLayerCount {array_layer_count}) but the texture view only has {total} total layers",
1851+
"`TextureView` spans array layers [{base_array_layer}, {end_array_layer}) \
1852+
(`arrayLayerCount` {array_layer_count}) but the texture view only has {total} total layers",
18531853
end_array_layer = base_array_layer + array_layer_count
18541854
)]
18551855
TooManyArrayLayers {

0 commit comments

Comments
 (0)