Skip to content

Commit fcf8faf

Browse files
committed
fix dead intra links in doc on Input and Reflect (#2007)
fix a few dead links * Links in `Input` missed a refactor * `Reflect::downcast` can't use the intra doc link format, as it's not a link to a trait function, but to a function implemented on `dyn Reflect` noticed in #1781 (comment)
1 parent 0a8576b commit fcf8faf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/bevy_input/src/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use bevy_ecs::schedule::State;
1818
/// but only one should react, for example in the case of triggering
1919
/// [`State`] change, you should consider clearing the input state, either by:
2020
///
21-
/// * Using [`Input::just_pressed_and_clear`] or [`Input::just_released_and_clear`] instead.
21+
/// * Using [`Input::clear_just_pressed`] or [`Input::clear_just_released`] instead.
2222
/// * Calling [`Input::clear`] or [`Input::reset`] immediately after the state change.
2323
///
2424
/// ## Notes when adding this resource for a new input type

crates/bevy_reflect/src/reflect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ pub enum ReflectMut<'a> {
2424
/// A reflected rust type.
2525
///
2626
/// # Safety
27-
/// Implementors _must_ ensure that [Reflect::any] and [Reflect::any_mut] both return the `self`
28-
/// value passed in If this is not done, [Reflect::downcast] will be UB (and also just logically
29-
/// broken).
27+
/// Implementors _must_ ensure that [`Reflect::any`] and [`Reflect::any_mut`] both return the `self`
28+
/// value passed in If this is not done, [`Reflect::downcast`](trait.Reflect.html#method.downcast)
29+
/// will be UB (and also just logically broken).
3030
pub unsafe trait Reflect: Any + Send + Sync {
3131
fn type_name(&self) -> &str;
3232
fn any(&self) -> &dyn Any;

0 commit comments

Comments
 (0)