Fix broken intra-doc links

This commit is contained in:
Héctor Ramón Jiménez 2025-08-23 02:41:52 +02:00
parent fbe60feb7e
commit 885d45f435
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 21 additions and 21 deletions

View file

@ -3,7 +3,7 @@ use crate::runtime::Task;
use std::borrow::Cow;
use std::fmt;
/// A specific boot strategy for a [`Program`].
/// A specific boot strategy for a [`Program`](crate::Program).
pub struct Preset<State, Message> {
name: Cow<'static, str>,
boot: Box<dyn Fn() -> (State, Task<Message>)>,
@ -26,7 +26,7 @@ impl<State, Message> Preset<State, Message> {
&self.name
}
/// Boots the [`Preset`], returning the initial [`Program`] state and
/// Boots the [`Preset`], returning the initial [`Program`](crate::Program) state and
/// a [`Task`] for concurrent booting.
pub fn boot(&self) -> (State, Task<Message>) {
(self.boot)()