Skip to content

Commit

Permalink
Fix doc_markdown lints in bevy_input (bevyengine#3475)
Browse files Browse the repository at this point in the history
bevyengine#3457 adds the `doc_markdown` clippy lint, which checks doc comments to make sure code identifiers are escaped with backticks. This causes a lot of lint errors, so this is one of a number of PR's that will fix those lint errors one crate at a time.

This PR fixes lints in the `bevy_input` crate.
  • Loading branch information
mfdorst authored and mockersf committed Jan 1, 2022
1 parent 7fe9b59 commit 467dddf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_input/src/gamepad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use bevy_utils::{tracing::info, HashMap, HashSet};
pub struct Gamepad(pub usize);

#[derive(Default)]
/// Container of unique connected [Gamepad]s
/// Container of unique connected [`Gamepad`]s
///
/// [Gamepad]s are registered and deregistered in [gamepad_connection_system]
/// [`Gamepad`]s are registered and deregistered in [`gamepad_connection_system`]
pub struct Gamepads {
gamepads: HashSet<Gamepad>,
}
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_input/src/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct KeyboardInput {
pub state: ElementState,
}

/// Updates the Input<KeyCode> resource with the latest KeyboardInput events
/// Updates the `Input<KeyCode>` resource with the latest `KeyboardInput` events
pub fn keyboard_input_system(
mut keyboard_input: ResMut<Input<KeyCode>>,
mut keyboard_input_events: EventReader<KeyboardInput>,
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_input/src/mouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct MouseWheel {
pub y: f32,
}

/// Updates the Input<MouseButton> resource with the latest MouseButtonInput events
/// Updates the `Input<MouseButton>` resource with the latest `MouseButtonInput` events
pub fn mouse_button_input_system(
mut mouse_button_input: ResMut<Input<MouseButton>>,
mut mouse_button_input_events: EventReader<MouseButtonInput>,
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_input/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
use bevy_app::AppExit;
use bevy_ecs::prelude::{EventReader, EventWriter};

/// Sends the AppExit event whenever the "esc" key is pressed.
/// Sends the `AppExit` event whenever the "esc" key is pressed.
pub fn exit_on_esc_system(
mut keyboard_input_events: EventReader<KeyboardInput>,
mut app_exit_events: EventWriter<AppExit>,
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_input/src/touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl Touches {
}
}

/// Updates the Touches resource with the latest TouchInput events
/// Updates the `Touches` resource with the latest `TouchInput` events
pub fn touch_screen_input_system(
mut touch_state: ResMut<Touches>,
mut touch_input_events: EventReader<TouchInput>,
Expand Down

0 comments on commit 467dddf

Please sign in to comment.