Skip to content

Commit 45454c7

Browse files
DiddykongaMrGVSV
andcommitted
Suggestion: Change remove_if doc comment
Co-authored-by: Gino Valente <49806985+MrGVSV@users.noreply.github.com>
1 parent 41b7e05 commit 45454c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_reflect/src/structs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ impl DynamicStruct {
388388
Some((name, self.fields.remove(index)))
389389
}
390390

391-
/// Removes a field with the predicate `f`, that short-circuits.
391+
/// Removes the first field that satisfies the given predicate, `f`.
392392
pub fn remove_if<F>(&mut self, mut f: F) -> Option<(Cow<'static, str>, Box<dyn PartialReflect>)>
393393
where
394394
F: FnMut((&str, &dyn PartialReflect)) -> bool,

0 commit comments

Comments
 (0)