Skip to content

Commit

Permalink
Fix wording.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed May 1, 2022
1 parent bf9b29a commit d45a104
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
11 changes: 5 additions & 6 deletions book-src/core-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,16 @@ html! {

### Selector

A derived state. Unlike Atoms or Slices, a selector cannot store any
value. It derives its value from other states (atoms, slices or
A derived state. Unlike Atoms or Slices, a selector does not store any
value in itself. It derives its value from other states (atoms, slices or
other selectors) and subscribes to the state used to derive values
so it will update its value when any value it
subscribes to changes automatically.

#### Example

A selector that checks if the pervious counter slice is even.
A selector that checks if the counter slice defined in the previous
example is even.

```rust
#[derive(PartialEq)]
Expand Down Expand Up @@ -202,8 +203,6 @@ API Reference:

An action that can be applied to multiple states.

A notion can be any type that is `'static`.

When a notion is applied, it will be broadcasted to all states that
listen to this notion.

Expand Down Expand Up @@ -321,7 +320,7 @@ API Reference:

The Future Notion API is a low-level API to execute asynchronous tasks.

If you are trying to interact with a backend API,
If you want to interact with an API,
it is recommended to use the [Query API](query-api.md) instead.

The Query API is built with the Future Notion API.
Expand Down
6 changes: 3 additions & 3 deletions book-src/tutorial.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tutorial

This tutorial will guide you through to create a simple application that
This tutorial will guide you to create a simple application that
greets the user with the entered name.

## 0. Prerequisites
Expand All @@ -18,7 +18,7 @@ You need the following tools:
1. [Rust](https://rustup.rs/) with `wasm32-unknown-unknown` target toolchain

If you installed Rust with rustup, You can obtain the
`wasm32-unknown-unknown` target with the following command:
`wasm32-unknown-unknown` target toolchain with the following command:

```shell
rustup target add wasm32-unknown-unknown
Expand All @@ -32,7 +32,7 @@ You need the following tools:

This tutorial uses the `yew-trunk-minimal-template`.
This template repository has a minimal setup of Yew with Trunk.
You can a new repository using the template with the following commands:
You can create a new repository using the template with the following commands:

```shell
mkdir my-first-bounce-app
Expand Down
1 change: 0 additions & 1 deletion book.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[book]
authors = ["Kaede Hoshikawa"]
language = "en"
multilingual = false
src = "book-src"
Expand Down

0 comments on commit d45a104

Please sign in to comment.