masonry: Remove 2 references to tutorials. (#546)

This commit is contained in:
Bruce Mitchener 2024-08-25 18:43:21 +07:00 committed by GitHub
parent a84791a404
commit d084f0bc86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -57,13 +57,12 @@ pub struct WidgetId(pub(crate) NonZeroU64);
/// ///
/// Widgets also have a [`children`](Self::children) method. Leaf widgets return an empty array, /// Widgets also have a [`children`](Self::children) method. Leaf widgets return an empty array,
/// whereas container widgets return an array of [`WidgetRef`]. Container widgets /// whereas container widgets return an array of [`WidgetRef`]. Container widgets
/// have some validity invariants to maintain regarding their children. See TUTORIAL_2 /// have some validity invariants to maintain regarding their children.
/// for details **(TODO)**.
/// ///
/// Generally speaking, widgets aren't used directly. They are stored in /// Generally speaking, widgets aren't used directly. They are stored in
/// [`WidgetPod`](crate::WidgetPod)s. Widget methods are called by `WidgetPod`s, and the /// [`WidgetPod`](crate::WidgetPod)s. Widget methods are called by `WidgetPod`s, and the
/// widget is mutated either during a method call (eg `on_event` or `lifecycle`) or /// widget is mutated either during a method call (eg `on_event` or `lifecycle`) or
/// through a [`WidgetMut`](crate::widget::WidgetMut). See tutorials for details. /// through a [`WidgetMut`](crate::widget::WidgetMut).
#[allow(unused_variables)] #[allow(unused_variables)]
pub trait Widget: AsAny { pub trait Widget: AsAny {
/// Handle an event - usually user interaction. /// Handle an event - usually user interaction.