Skip to content

Commit ffcdf80

Browse files
authored
chore: fix typos causing dead links
1 parent b811e9d commit ffcdf80

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

winit-core/src/window.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl WindowAttributes {
328328
///
329329
/// **Android / iOS / X11 / Wayland / Orbital:** Unsupported.
330330
///
331-
/// [`WindowEvent::Focused`]: crate::event::WindowEvent::Focused.
331+
/// [`WindowEvent::Focused`]: crate::event::WindowEvent::Focused
332332
#[inline]
333333
pub fn with_active(mut self, active: bool) -> Self {
334334
self.active = active;
@@ -1943,15 +1943,15 @@ bitflags! {
19431943
pub struct ImeRequestData {
19441944
/// Text input hint and purpose.
19451945
///
1946-
/// To support updating it, enable [`ImeCapabilities::HINT_AND_PURPOSE`].
1946+
/// To support updating it, enable [`ImeCapabilities::hint_and_purpose()`].
19471947
pub hint_and_purpose: Option<(ImeHint, ImePurpose)>,
19481948
/// The IME cursor area which should not be covered by the input method popup.
19491949
///
1950-
/// To support updating it, enable [`ImeCapabilities::CURSOR_AREA`].
1950+
/// To support updating it, enable [`ImeCapabilities::cursor_area()`].
19511951
pub cursor_area: Option<(Position, Size)>,
19521952
/// The text surrounding the caret
19531953
///
1954-
/// To support updating it, enable [`ImeCapabilities::SURROUNDING_TEXT`].
1954+
/// To support updating it, enable [`ImeCapabilities::surrounding_text()`].
19551955
pub surrounding_text: Option<ImeSurroundingText>,
19561956
}
19571957

winit-wayland/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub trait EventLoopExtWayland {
6161
fn is_wayland(&self) -> bool;
6262
}
6363

64-
/// Additional methods on [`EventLoopBuilder`] that are specific to Wayland.
64+
/// Additional methods when building event loop that are specific to Wayland.
6565
pub trait EventLoopBuilderExtWayland {
6666
/// Force using Wayland.
6767
fn with_wayland(&mut self) -> &mut Self;

winit-x11/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub trait EventLoopExtX11 {
125125
fn is_x11(&self) -> bool;
126126
}
127127

128-
/// Additional methods on [`EventLoopBuilder`] that are specific to X11.
128+
/// Additional methods when building event loop that are specific to X11.
129129
pub trait EventLoopBuilderExtX11 {
130130
/// Force using X11.
131131
fn with_x11(&mut self) -> &mut Self;

0 commit comments

Comments
 (0)