Skip to content

Commit 5d1d073

Browse files
authored
Fix AsBindGroupError display for InvalidSamplerType (#16079)
# Objective - Display message for `AsBindGroupError::InvalidSamplerType` was not correctly displaying the binding index ## Solution - Simple typo fix ## Testing - Tested locally
1 parent 6756770 commit 5d1d073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_render/src/render_resource/bind_group.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ pub enum AsBindGroupError {
359359
/// The bind group could not be generated. Try again next frame.
360360
#[display("The bind group could not be generated")]
361361
RetryNextUpdate,
362-
#[display("At binding index{0}, the provided image sampler `{_1}` does not match the required sampler type(s) `{_2}`.")]
362+
#[display("At binding index {_0}, the provided image sampler `{_1}` does not match the required sampler type(s) `{_2}`.")]
363363
InvalidSamplerType(u32, String, String),
364364
}
365365

0 commit comments

Comments
 (0)