Update Ice example in documentation
This commit is contained in:
parent
4366a7cdb9
commit
8a1462b54c
2 changed files with 4 additions and 4 deletions
|
|
@ -588,7 +588,7 @@ impl SavedState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn presets() -> impl Iterator<Item = Preset<Todos, Message>> {
|
fn presets() -> impl IntoIterator<Item = Preset<Todos, Message>> {
|
||||||
[
|
[
|
||||||
Preset::new("Empty", || {
|
Preset::new("Empty", || {
|
||||||
(Todos::Loaded(State::default()), Command::none())
|
(Todos::Loaded(State::default()), Command::none())
|
||||||
|
|
|
||||||
|
|
@ -37,15 +37,15 @@ impl Ice {
|
||||||
/// mode: Immediate
|
/// mode: Immediate
|
||||||
/// preset: Empty
|
/// preset: Empty
|
||||||
/// -----
|
/// -----
|
||||||
/// click at "What needs to be done?"
|
/// click "What needs to be done?"
|
||||||
/// type "Create the universe"
|
/// type "Create the universe"
|
||||||
/// type enter
|
/// type enter
|
||||||
/// type "Make an apple pie"
|
/// type "Make an apple pie"
|
||||||
/// type enter
|
/// type enter
|
||||||
/// expect "2 tasks left"
|
/// expect "2 tasks left"
|
||||||
/// click at "Create the universe"
|
/// click "Create the universe"
|
||||||
/// expect "1 task left"
|
/// expect "1 task left"
|
||||||
/// click at "Make an apple pie"
|
/// click "Make an apple pie"
|
||||||
/// expect "0 tasks left"
|
/// expect "0 tasks left"
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue