Skip to content

Commit d1f4f04

Browse files
authored
docs: fixed typos (#29)
1 parent e48421a commit d1f4f04

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

src/concepts/components/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl Component for MyComponent {
5757
}
5858
```
5959

60-
For usage details, check out the `html` guide:
60+
For usage details, check out the `html!` guide:
6161

6262
{% page-ref page="../html/" %}
6363

src/concepts/components/properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ As stated in the Components page, Properties are used to communicate from a pare
88

99
## Derive macro
1010

11-
Don't try to implement `Properties` yourself, instead derive it by using `#[derive(Properties)]` instead.
11+
Don't try to implement `Properties` yourself, derive it by using `#[derive(Properties)]` instead.
1212

1313
### Required attribute
1414

src/concepts/html/elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ html! {
132132
```
133133
{% endtab %}
134134

135-
{% tab title="List" %}
135+
{% tab title="Tuple" %}
136136
```rust
137137
html! {
138138
<div class=("class-1", "class-2")></div>

src/concepts/router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ You can also capture sections using variations of `{}` within your `#[to = ""]`
4242

4343
For structs and enums with named fields, you must specify the field's name within the capture group like so: `{user_name}` or `{*:age}`.
4444

45-
The Switch trait works with capture groups that are more structured than just Strings. You can specify any type that implements `Switch`. So you can specify that the capture group is a `usize`, and if the captured section of the URL can't be converted to it, then the variant won't match.
45+
The Switch trait works with capture groups that are more structured than just Strings. You can specify any type that implements `Switch`. So you can specify that the capture group is a `usize`, and if the captured section of the URL can't be converted to it, then the variant won't match.
4646

4747

src/what-is-yew.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: A high level overview of the framework.
66

77
## What is Yew?
88

9-
Yew is a frontend web framework, similar to React or Elm, that allows you to build websites with complex logic that runs in a web browser. Apps that use Yew are written in Rust, which compiles to Web Assembly \(**WASM**\), or plain JavaScript, in order to run in the browser.
9+
Yew is a frontend web framework, similar to React or Elm, that allows you to build websites with complex logic that runs in a web browser. Apps that use Yew are written in Rust, which compiles to Web Assembly \(**WASM**\), or plain JavaScript, in order to run in the browser.
1010

1111
### Value Proposition
1212

@@ -25,13 +25,10 @@ Yew is comprised of a few distinct parts that are used to create a working appli
2525

2626
#### Dependencies
2727

28-
Yew is built on top of `StdWeb`, a library that provides bindings between Rust and the Browser. Some features rely on another library called `web-sys`, which is auto-generated from web browser specification documents, and makes use of `wasm_bindgen`.
28+
Yew is built on top of `StdWeb`, a library that provides bindings between Rust and the Browser. Some features rely on another library called `web-sys`, which is auto-generated from web browser specification documents, and makes use of `wasm_bindgen`.
2929

3030
#### Build environments
3131

32-
If your app is architected to only use StdWeb-based features, you can use the `cargo-web` build tool to build, test, and run your application. If you want to make use of advanced features, or just prefer the ecosystem, you can use various existing JS bundlers and their wasm\_bindgen based plugins to build your app. These include building using `wasm-pack` and bundling it yourself using `rollup`, or using `Webpack` or `Parcel` to manage your development and deployment tasks.
33-
34-
`cargo-web` supports compiling to JS via `Emscripten` or compiling to WASM using `rustc`, while using wasm\_bindgen based approaches only support compiling to WASM.
35-
36-
32+
If your app is architected to only use StdWeb-based features, you can use the `cargo-web` build tool to build, test, and run your application. If you want to make use of advanced features, or just prefer the ecosystem, you can use various existing JS bundlers and their `wasm_bindgen` based plugins to build your app. These include building using `wasm-pack` and bundling it yourself using `rollup`, or using `Webpack` or `Parcel` to manage your development and deployment tasks.
3733

34+
`cargo-web` supports compiling to JS via `Emscripten` or compiling to WASM using `rustc`, while using `wasm_bindgen` based approaches only support compiling to WASM.

0 commit comments

Comments
 (0)