Skip to content

Commit

Permalink
Fix typo in todo_1.md (#1707)
Browse files Browse the repository at this point in the history
Text talksa bout Window::model when the code actually adds Window::tasks
  • Loading branch information
exi authored Apr 21, 2024
1 parent d6f998e commit 4e4b74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/todo_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master
{{#rustdoc_include ../listings/todo/1/window/imp.rs:constructed}}
```

Since we need to access the list model quite often, we add the convenience method `Window::model` for that.
Since we need to access the list model quite often, we add the convenience method `Window::tasks` for that.
In `Window::setup_tasks` we create a new model.
Then we store a reference to the model in `imp::Window` as well as in `gtk::ListView`.

Expand Down

0 comments on commit 4e4b74e

Please sign in to comment.