diff --git a/crates/bevy_ecs/src/change_detection.rs b/crates/bevy_ecs/src/change_detection.rs index b66a098c30f42..38ccbef7b50bb 100644 --- a/crates/bevy_ecs/src/change_detection.rs +++ b/crates/bevy_ecs/src/change_detection.rs @@ -551,7 +551,7 @@ impl<'a, T: ?Sized> Ref<'a, T> { /// /// This doesn't do anything else than call `f` on the wrapped value. /// This is equivalent to [`Mut::map_unchanged`]. - pub fn map(self, f: impl FnOnce(&T) -> &U) -> Ref<'a, U> { + pub fn map(self, f: impl FnOnce(&T) -> &U) -> Ref<'a, U> { Ref { value: f(self.value), ticks: self.ticks,