Skip to content

Commit 20e6765

Browse files
DiddykongaMrGVSV
andauthored
Suggestion: Change remove_if doc comment
Co-authored-by: Gino Valente <[email protected]>
1 parent a8e866c commit 20e6765

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)