Skip to content

Commit 1f19a3a

Browse files
authored
Fix Access::new_write_all docs (#22502)
# Objective `Access::new_write_all` docs mention `read_all` rather than `write_all`. ## Solution Fix it.
1 parent 76df45d commit 1f19a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/query/access.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ impl Access {
161161
access
162162
}
163163

164-
/// Creates an [`Access`] with read access to all components.
165-
/// This is equivalent to calling `read_all()` on `Access::new()`,
164+
/// Creates an [`Access`] with read and write access to all components.
165+
/// This is equivalent to calling `write_all()` on `Access::new()`,
166166
/// but is available in a `const` context.
167167
pub(crate) const fn new_write_all() -> Self {
168168
let mut access = Self::new();

0 commit comments

Comments
 (0)