Update Ice example in documentation

This commit is contained in:
Héctor Ramón Jiménez 2025-09-23 02:11:02 +02:00
parent 4366a7cdb9
commit 8a1462b54c
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 4 additions and 4 deletions

View file

@ -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())

View file

@ -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"
/// ```
///