Skip to content

Commit

Permalink
Changed 'Model' to 'App' (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
danbugs authored and jstarry committed Aug 16, 2020
1 parent 601035f commit 0657433
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Add yew to your dependencies \(refer [here](https://docs.rs/yew) for the latest

{% code title="Cargo.toml" %}
```text
[package]
[package]
name = "yew-app"
version = "0.1.0"
authors = ["Yew App Developer <[email protected]>"]
Expand Down Expand Up @@ -54,7 +55,7 @@ impl Component for App {
type Properties = ();

fn create(_: Self::Properties, _: ComponentLink<Self>) -> Self {
Model { clicked: false }
App { clicked: false }
}

fn update(&mut self, msg: Self::Message) -> ShouldRender {
Expand Down

0 comments on commit 0657433

Please sign in to comment.