From 7981b93e8c42a94fa7d9205301f137ecc30c0c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Sun, 25 Apr 2021 17:44:35 +0200 Subject: [PATCH 1/2] fix dead intra links in doc --- crates/bevy_input/src/input.rs | 2 +- crates/bevy_reflect/src/reflect.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_input/src/input.rs b/crates/bevy_input/src/input.rs index 1067fdf194f04..f481cb85a8c5a 100644 --- a/crates/bevy_input/src/input.rs +++ b/crates/bevy_input/src/input.rs @@ -18,7 +18,7 @@ use bevy_ecs::schedule::State; /// but only one should react, for example in the case of triggering /// [`State`] change, you should consider clearing the input state, either by: /// -/// * Using [`Input::just_pressed_and_clear`] or [`Input::just_released_and_clear`] instead. +/// * Using [`Input::clear_just_pressed`] or [`Inut::clear_just_released`] instead. /// * Calling [`Input::clear`] or [`Input::reset`] immediately after the state change. /// /// ## Notes when adding this resource for a new input type diff --git a/crates/bevy_reflect/src/reflect.rs b/crates/bevy_reflect/src/reflect.rs index 9271997479403..df7749599ba2f 100644 --- a/crates/bevy_reflect/src/reflect.rs +++ b/crates/bevy_reflect/src/reflect.rs @@ -24,9 +24,9 @@ pub enum ReflectMut<'a> { /// A reflected rust type. /// /// # Safety -/// Implementors _must_ ensure that [Reflect::any] and [Reflect::any_mut] both return the `self` -/// value passed in If this is not done, [Reflect::downcast] will be UB (and also just logically -/// broken). +/// Implementors _must_ ensure that [`Reflect::any`] and [`Reflect::any_mut`] both return the `self` +/// value passed in If this is not done, [`Reflect::downcast`](trait.Reflect.html#method.downcast) +/// will be UB (and also just logically broken). pub unsafe trait Reflect: Any + Send + Sync { fn type_name(&self) -> &str; fn any(&self) -> &dyn Any; From bd9738e916526314592a2877b092013bf007e325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sun, 25 Apr 2021 17:51:18 +0200 Subject: [PATCH 2/2] :facepalm: Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com> --- crates/bevy_input/src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_input/src/input.rs b/crates/bevy_input/src/input.rs index f481cb85a8c5a..c1bea3f77b88a 100644 --- a/crates/bevy_input/src/input.rs +++ b/crates/bevy_input/src/input.rs @@ -18,7 +18,7 @@ use bevy_ecs::schedule::State; /// but only one should react, for example in the case of triggering /// [`State`] change, you should consider clearing the input state, either by: /// -/// * Using [`Input::clear_just_pressed`] or [`Inut::clear_just_released`] instead. +/// * Using [`Input::clear_just_pressed`] or [`Input::clear_just_released`] instead. /// * Calling [`Input::clear`] or [`Input::reset`] immediately after the state change. /// /// ## Notes when adding this resource for a new input type