Skip to content

Commit 0491f01

Browse files
committed
docs: fixes doc
1 parent 95aa4ee commit 0491f01

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/bevy_input_focus/src/directional_navigation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
//!
2222
//! ## Automatic Navigation (Recommended)
2323
//!
24-
//! The easiest way to set up navigation is to add the [`AutoDirectionalNavigation`] component
24+
//! The easiest way to set up navigation is to add the `AutoDirectionalNavigation` component
2525
//! to your UI entities. This component is available in the `bevy_ui` crate. If you choose to
26-
//! include automatic navigation, you should also use the [`AutoDirectionalNavigator`] system parameter
26+
//! include automatic navigation, you should also use the `AutoDirectionalNavigator` system parameter
2727
//! in that crate instead of [`DirectionalNavigation`].
2828
//!
2929
//! ## Manual Navigation
@@ -317,7 +317,7 @@ pub trait Navigable {
317317
/// # Example
318318
///
319319
/// ```rust
320-
/// # use bevy_input_focus::{directional_navigation::*, FocusableArea, NavigatorConfig};
320+
/// # use bevy_input_focus::{directional_navigation::*, navigator::{FocusableArea, NavigatorConfig}};
321321
/// # use bevy_ecs::entity::Entity;
322322
/// # use bevy_math::Vec2;
323323
/// let mut nav_map = DirectionalNavigationMap::default();

crates/bevy_input_focus/src/navigator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl Default for NavigatorConfig {
8282
/// This struct represents a UI element used during directional navigation,
8383
/// containing its entity ID, center position, and size for spatial navigation calculations.
8484
///
85-
/// The term "focusable area" avoids confusion with UI [`Node`](bevy_ui::Node) components.
85+
/// The term "focusable area" avoids confusion with UI `Node` components in `bevy_ui`.
8686
#[derive(Debug, Clone, Copy, PartialEq)]
8787
#[cfg_attr(
8888
feature = "bevy_reflect",

0 commit comments

Comments
 (0)