Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import will be the Bubble Tea library, which we'll call `tea` for short.
```go
package main

// These imports will be used later on the tutorial. If you save the file
// These imports will be used later in the tutorial. If you save the file
// now, Go might complain they are unused, but that's fine.
// You may also need to run `go mod tidy` to download bubbletea and its
// dependencies.
Expand All @@ -85,7 +85,7 @@ state and three simple methods on that model:

### The Model

So let's start by defining our model which will store our application's state.
So let's start by defining our model, which will store our application's state.
It can be any type, but a `struct` usually makes the most sense.

```go
Expand All @@ -109,7 +109,7 @@ func initialModel() model {
choices: []string{"Buy carrots", "Buy celery", "Buy kohlrabi"},

// A map which indicates which choices are selected. We're using
// the map like a mathematical set. The keys refer to the indexes
// the map like a mathematical set. The keys refer to the indexes
// of the `choices` slice, above.
selected: make(map[int]struct{}),
}
Expand All @@ -130,8 +130,8 @@ func (m model) Init() tea.Cmd {

### The Update Method

Next up is the update method. The update function is called when things
happen. Its job is to look at what has happened and return an updated model in
Next up is the update method. The update function is called when "things
happen." Its job is to look at what has happened and return an updated model in
response. It can also return a `Cmd` to make more things happen, but for now
don't worry about that part.

Expand Down