Fix broken intra-doc links
This commit is contained in:
parent
fbe60feb7e
commit
885d45f435
7 changed files with 21 additions and 21 deletions
|
|
@ -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)()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue