From d0f3e1e052f36672c397544e51b42a1508237e2f Mon Sep 17 00:00:00 2001 From: bashbunni Date: Fri, 9 Sep 2022 12:56:00 -0700 Subject: [PATCH] fix: fix typos --- README.md | 5 +---- tutorials/basics/README.md | 15 ++++++++------- tutorials/commands/README.md | 3 ++- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 8d62e0b..04cc028 100644 --- a/README.md +++ b/README.md @@ -313,9 +313,6 @@ run `tail -f debug.log` while you run your program in another window. [termenv]: https://github.com/muesli/termenv [reflow]: https://github.com/muesli/reflow -## Additional utility libraries to use with Bubble Tea - - ## Bubble Tea in the Wild For some Bubble Tea programs in production, see: @@ -335,7 +332,7 @@ For some Bubble Tea programs in production, see: * [gambit](https://github.com/maaslalani/gambit): play chess in the terminal * [gembro](https://git.sr.ht/~rafael/gembro): a mouse-driven Gemini browser * [gh-b](https://github.com/joaom00/gh-b): GitHub CLI extension to easily manage your branches -* [gh-dash](https://www.github.com/dlvhdr/gh-dash): GitHub cli extension to display a dashboard of PRs and issues +* [gh-dash](https://www.github.com/dlvhdr/gh-dash): GitHub CLI extension to display a dashboard of PRs and issues * [gitflow-toolkit](https://github.com/mritd/gitflow-toolkit): a GitFlow submission tool * [Glow](https://github.com/charmbracelet/glow): a markdown reader, browser and online markdown stash * [gocovsh](https://github.com/orlangure/gocovsh): explore Go coverage reports from the CLI diff --git a/tutorials/basics/README.md b/tutorials/basics/README.md index 31bc382..3fcfa66 100644 --- a/tutorials/basics/README.md +++ b/tutorials/basics/README.md @@ -14,7 +14,7 @@ This tutorial assumes you have a working knowledge of Go. ## Enough! Let's get to it. -For this tutorial we're making a shopping list. +For this tutorial, we're making a shopping list. To start we'll define our package and import some libraries. Our only external import will be the Bubble Tea library, which we'll call `tea` for short. @@ -52,8 +52,8 @@ type model struct { ## Initialization -Next we’ll define our application’s initial state. In this case we’re defining -a function to return our initial model, however we could just as easily define +Next, we’ll define our application’s initial state. In this case, we’re defining +a function to return our initial model, however, we could just as easily define the initial model as a variable elsewhere, too. ```go @@ -70,8 +70,8 @@ func initialModel() model { } ``` -Next we define the `Init` method. `Init` can return a `Cmd` that could perform -some initial I/O. For now, we don't need to do any I/O, so for the command +Next, we define the `Init` method. `Init` can return a `Cmd` that could perform +some initial I/O. For now, we don't need to do any I/O, so for the command, we'll just return `nil`, which translates to "no command." ```go @@ -152,7 +152,7 @@ the Bubble Tea runtime to quit, exiting the program. ## The View Method At last, it’s time to render our UI. Of all the methods, the view is the -simplest. We look at the model in it's current state and use it to return +simplest. We look at the model in its current state and use it to return a `string`. That string is our UI! Because the view describes the entire UI of your application, you don’t have to @@ -230,11 +230,12 @@ We'd love to hear your thoughts on this tutorial. Feel free to drop us a note! * [Twitter](https://twitter.com/charmcli) * [The Fediverse](https://mastodon.technology/@charm) +* [Slack](https://charm.sh/slack) *** Part of [Charm](https://charm.sh). -The Charm logo +The Charm logo Charm热爱开源 • Charm loves open source diff --git a/tutorials/commands/README.md b/tutorials/commands/README.md index cfeb639..a1275f1 100644 --- a/tutorials/commands/README.md +++ b/tutorials/commands/README.md @@ -236,11 +236,12 @@ We'd love to hear your thoughts on this tutorial. Feel free to drop us a note! * [Twitter](https://twitter.com/charmcli) * [The Fediverse](https://mastodon.technology/@charm) +* [Slack](https://charm.sh/slack) *** Part of [Charm](https://charm.sh). -The Charm logo +The Charm logo Charm热爱开源 • Charm loves open source