fix: fix typos
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by bashbunni · committed by Christian Rocha · parent 14422f5 · Browse files · 3 files·+11 added−12 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+11 added−12 removed
- other:+11 added−12 removed
Provenance
- Commit
d0f3e1e- Tree
781ac79- Author
bashbunni <bashbunni.io@gmail.com>- Committer
Christian Rocha <christian@rocha.is>- Parent
14422f5
3 files changed+11 added−12 removed
modified:tutorials/basics/README.md+8 added-7 removed
12 unmodified lines13 [elm]: https://guide.elm-lang.org/architecture/14 15 ## Enough! Let's get to it.16 17-For this tutorial we're making a shopping list.17+For this tutorial, we're making a shopping list.18 19 To start we'll define our package and import some libraries. Our only external20 import will be the Bubble Tea library, which we'll call `tea` for short.21 29 unmodified lines51 ```52 53 ## Initialization54 55-Next we’ll define our application’s initial state. In this case we’re defining56-a function to return our initial model, however we could just as easily define55+Next, we’ll define our application’s initial state. In this case, we’re defining56+a function to return our initial model, however, we could just as easily define57 the initial model as a variable elsewhere, too.58 59 ```go60 func initialModel() model {8 unmodified lines69 }70 }71 ```72 73-Next we define the `Init` method. `Init` can return a `Cmd` that could perform74-some initial I/O. For now, we don't need to do any I/O, so for the command73+Next, we define the `Init` method. `Init` can return a `Cmd` that could perform74+some initial I/O. For now, we don't need to do any I/O, so for the command,75 we'll just return `nil`, which translates to "no command."76 77 ```go78 func (m model) Init() tea.Cmd {72 unmodified lines151 152 ## The View Method153 154 At last, it’s time to render our UI. Of all the methods, the view is the155-simplest. We look at the model in it's current state and use it to return155+simplest. We look at the model in its current state and use it to return156 a `string`. That string is our UI!157 158 Because the view describes the entire UI of your application, you don’t have to159 worry about redrawing logic and stuff like that. Bubble Tea takes care of it69 unmodified lines229 We'd love to hear your thoughts on this tutorial. Feel free to drop us a note!230 231 * [Twitter](https://twitter.com/charmcli)232 * [The Fediverse](https://mastodon.technology/@charm)233+* [Slack](https://charm.sh/slack)234 235 ***236 237 Part of [Charm](https://charm.sh).238 238-<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a>239+<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>240 241 Charm热爱开源 • Charm loves open sourcemodified:tutorials/commands/README.md+2 added-1 removed
234 unmodified lines235 We'd love to hear your thoughts on this tutorial. Feel free to drop us a note!236 237 * [Twitter](https://twitter.com/charmcli)238 * [The Fediverse](https://mastodon.technology/@charm)239+* [Slack](https://charm.sh/slack)240 241 ***242 243 Part of [Charm](https://charm.sh).244 244-<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a>245+<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>246 247 Charm热爱开源 • Charm loves open sourcemodified:README.md+1 added-4 removed
311 unmodified lines312 [bubblezone]: https://github.com/lrstanley/bubblezone313 [termenv]: https://github.com/muesli/termenv314 [reflow]: https://github.com/muesli/reflow315 316-## Additional utility libraries to use with Bubble Tea317-318-316 ## Bubble Tea in the Wild317 318 For some Bubble Tea programs in production, see:319 11 unmodified lines331 * [fork-cleaner](https://github.com/caarlos0/fork-cleaner): cleans up old and inactive forks in your GitHub account332 * [gambit](https://github.com/maaslalani/gambit): play chess in the terminal333 * [gembro](https://git.sr.ht/~rafael/gembro): a mouse-driven Gemini browser334 * [gh-b](https://github.com/joaom00/gh-b): GitHub CLI extension to easily manage your branches338-* [gh-dash](https://www.github.com/dlvhdr/gh-dash): GitHub cli extension to display a dashboard of PRs and issues335+* [gh-dash](https://www.github.com/dlvhdr/gh-dash): GitHub CLI extension to display a dashboard of PRs and issues336 * [gitflow-toolkit](https://github.com/mritd/gitflow-toolkit): a GitFlow submission tool337 * [Glow](https://github.com/charmbracelet/glow): a markdown reader, browser and online markdown stash338 * [gocovsh](https://github.com/orlangure/gocovsh): explore Go coverage reports from the CLI339 * [httpit](https://github.com/gonetx/httpit): a rapid http(s) benchmark tool55 unmodified lines