Fix broken doc links in widget::scrollable

This commit is contained in:
Héctor Ramón Jiménez 2024-07-11 08:11:19 +02:00
parent 8ae4e09db9
commit 8e9099cdd3
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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),
@ -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),
@ -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,
@ -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()
}