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", || {
|
||||
(Todos::Loaded(State::default()), Command::none())
|
||||
|
|
|
|||
|
|
@ -37,15 +37,15 @@ impl Ice {
|
|||
/// mode: Immediate
|
||||
/// preset: Empty
|
||||
/// -----
|
||||
/// click at "What needs to be done?"
|
||||
/// click "What needs to be done?"
|
||||
/// type "Create the universe"
|
||||
/// type enter
|
||||
/// type "Make an apple pie"
|
||||
/// type enter
|
||||
/// expect "2 tasks left"
|
||||
/// click at "Create the universe"
|
||||
/// click "Create the universe"
|
||||
/// expect "1 task left"
|
||||
/// click at "Make an apple pie"
|
||||
/// click "Make an apple pie"
|
||||
/// expect "0 tasks left"
|
||||
/// ```
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue