diff --git a/crates/bevy_render/src/render_resource/bind_group_entries.rs b/crates/bevy_render/src/render_resource/bind_group_entries.rs index 5bec21a0935cb..b6c17df979e16 100644 --- a/crates/bevy_render/src/render_resource/bind_group_entries.rs +++ b/crates/bevy_render/src/render_resource/bind_group_entries.rs @@ -10,7 +10,7 @@ use super::{Sampler, TextureView}; /// render_device.create_bind_group( /// "my_bind_group", /// &my_layout, -/// &BindGroupEntries::with_indexes(( +/// &BindGroupEntries::with_indices(( /// (2, &my_sampler), /// (3, my_uniform), /// )), @@ -86,7 +86,7 @@ impl<'b, const N: usize> BindGroupEntries<'b, N> { } #[inline] - pub fn with_indexes(indexed_resources: impl IntoIndexedBindingArray<'b, N>) -> Self { + pub fn with_indices(indexed_resources: impl IntoIndexedBindingArray<'b, N>) -> Self { Self { entries: indexed_resources .into_array() @@ -208,7 +208,7 @@ impl<'b> DynamicBindGroupEntries<'b> { self } - pub fn new_with_indexes(entries: impl IntoIndexedBindingArray<'b, N>) -> Self { + pub fn new_with_indices(entries: impl IntoIndexedBindingArray<'b, N>) -> Self { Self { entries: entries .into_array() @@ -218,7 +218,7 @@ impl<'b> DynamicBindGroupEntries<'b> { } } - pub fn extend_with_indexes( + pub fn extend_with_indices( mut self, entries: impl IntoIndexedBindingArray<'b, N>, ) -> Self {