Skip to content

Commit

Permalink
Fix broken doc links in widget::scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jul 11, 2024
1 parent 8ae4e09 commit 8e9099c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions widget/src/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pub enum Direction {
}

impl Direction {
/// Returns the [`Properties`] of the horizontal scrollbar, if any.
/// Returns the horizontal [`Scrollbar`], if any.
pub fn horizontal(&self) -> Option<&Scrollbar> {
match self {
Self::Horizontal(properties) => Some(properties),
Expand All @@ -206,7 +206,7 @@ impl Direction {
}
}

/// Returns the [`Properties`] of the vertical scrollbar, if any.
/// Returns the vertical [`Scrollbar`], if any.
pub fn vertical(&self) -> Option<&Scrollbar> {
match self {
Self::Vertical(properties) => Some(properties),
Expand All @@ -222,7 +222,7 @@ impl Default for Direction {
}
}

/// Properties of a scrollbar within a [`Scrollable`].
/// A scrollbar within a [`Scrollable`].
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Scrollbar {
width: f32,
Expand All @@ -245,7 +245,7 @@ impl Default for Scrollbar {
}

impl Scrollbar {
/// Creates new [`Properties`] for use in a [`Scrollable`].
/// Creates new [`Scrollbar`] for use in a [`Scrollable`].
pub fn new() -> Self {
Self::default()
}
Expand Down

0 comments on commit 8e9099c

Please sign in to comment.