Fix typos

This commit is contained in:
Dimitris Apostolou 2020-10-04 22:16:30 +03:00
parent 72eeae9d1d
commit 6f550b5d12
No known key found for this signature in database
GPG key ID: 4B5D20E938204A8A
5 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ The argument help is required in this command.
## Placeholder values
Use angled brackets to represent a value the user must replace. No other expressions can be contained within the angeled brackets.
Use angled brackets to represent a value the user must replace. No other expressions can be contained within the angled brackets.
_example:_
`gh pr view <issue-number>`

View file

@ -14,7 +14,7 @@ import (
"github.com/cli/cli/internal/run"
)
// ErrNotOnAnyBranch indicates that the users is in detached HEAD state
// ErrNotOnAnyBranch indicates that the user is in detached HEAD state
var ErrNotOnAnyBranch = errors.New("git: not on any branch")
// Ref represents a git commit reference

View file

@ -9,7 +9,7 @@ import (
"github.com/google/shlex"
)
// BrowserEnv simply returns the $BROWSER envionment variable
// BrowserEnv simply returns the $BROWSER environment variable
func FromEnv() string {
return os.Getenv("BROWSER")
}

View file

@ -399,7 +399,7 @@ func createRun(opts *CreateOptions) error {
// There are two cases when an existing remote for the head repo will be
// missing:
// 1. the head repo was just created by auto-forking;
// 2. an existing fork was discovered by quering the API.
// 2. an existing fork was discovered by querying the API.
//
// In either case, we want to add the head repo as a new git remote so we
// can push to it.

View file

@ -72,7 +72,7 @@ func Humanize(s string) string {
return strings.Map(h, s)
}
// We do this so we can stub out the spinner in tests -- it made things really flakey. this is not
// We do this so we can stub out the spinner in tests -- it made things really flakey. This is not
// an elegant solution.
var StartSpinner = func(s *spinner.Spinner) {
s.Start()