From d59392177b8fdf339ee032f6e3b249db6b3bfa47 Mon Sep 17 00:00:00 2001 From: eiei114 Date: Fri, 22 Jul 2022 15:04:32 +0000 Subject: [PATCH] Fix comment typo (#5421) # Objective - Fix some typos ## Solution For the first time in my life, I made a pull request to OSS. Am I right? Co-authored-by: eiei114 <60887155+eiei114@users.noreply.github.com> --- crates/bevy_gltf/src/lib.rs | 2 +- crates/bevy_window/src/window.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_gltf/src/lib.rs b/crates/bevy_gltf/src/lib.rs index b1748f8be86292..f86efd9732ffb5 100644 --- a/crates/bevy_gltf/src/lib.rs +++ b/crates/bevy_gltf/src/lib.rs @@ -57,7 +57,7 @@ pub struct GltfNode { pub transform: bevy_transform::prelude::Transform, } -/// A glTF mesh, which may consists of multiple [`GtlfPrimitives`](GltfPrimitive). +/// A glTF mesh, which may consist of multiple [`GltfPrimitives`](GltfPrimitive). #[derive(Debug, Clone, TypeUuid)] #[uuid = "8ceaec9a-926a-4f29-8ee3-578a69f42315"] pub struct GltfMesh { diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index 435f4002a0263c..3972046781d296 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -625,10 +625,10 @@ impl Window { /// - **`Windows`**, **`X11`**, and **`Wayland`**: The cursor is hidden only when inside the window. To stop the cursor from leaving the window, use [`set_cursor_lock_mode`](Window::set_cursor_lock_mode). /// - **`macOS`**: The cursor is hidden only when the window is focused. /// - **`iOS`** and **`Android`** do not have cursors - pub fn set_cursor_visibility(&mut self, visibile_mode: bool) { - self.cursor_visible = visibile_mode; + pub fn set_cursor_visibility(&mut self, visible_mode: bool) { + self.cursor_visible = visible_mode; self.command_queue.push(WindowCommand::SetCursorVisibility { - visible: visibile_mode, + visible: visible_mode, }); } /// Get the current [`CursorIcon`]