Skip to content

Commit

Permalink
Update note in "The Runtime" chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Apr 6, 2024
1 parent 4471cbb commit bce918a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ edit-url-template = "https://github.com/iced-rs/book/edit/master/{path}"
runnable = false

[preprocessor.iced]
rev = "9db6ac8f202ebdc1453edee01da0b30aee0949d8"
rev = "441e9237cd1c9c9b61d9b144b5b4dafa236ace28"
6 changes: 5 additions & 1 deletion src/the-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
> git = "https://github.com/iced-rs/iced.git"
> rev = "cdb18e610a72b4a025d7e1890140393adee5b087"
> ```
>
> If, on the other hand, you only want to quickly run the counter we just wrote using the latest release
> (boring!), check out [the `counter` example in the repository] and the API reference of [the `Sandbox` trait].
[a revision of iced]: https://github.com/iced-rs/iced/tree/cdb18e610a72b4a025d7e1890140393adee5b087
[the `Sandbox` trait]: https://docs.rs/iced/latest/iced/trait.Sandbox.html
[the `counter` example in the repository]: https://github.com/iced-rs/iced/blob/0.12/examples/counter/src/main.rs
# The Runtime
In the previous chapter we built the classical counter interface using iced and The Elm Architecture. We focused on each
Expand Down Expand Up @@ -204,7 +209,6 @@ Specifically,
- __view logic__ runs once at startup and then after every batch of interactions,
- and __update logic__ runs for every interaction that created a __message__.


## The Ice Wizard
"That's cool and all", you say, "but I am not a wizard and I still have no clue of how to run the counter interface I wrote.
I have things to count!"
Expand Down

0 comments on commit bce918a

Please sign in to comment.