From 6f550b5d121b8da998c1f0c11899b891bf41c431 Mon Sep 17 00:00:00 2001 From: Dimitris Apostolou Date: Sun, 4 Oct 2020 22:16:30 +0300 Subject: [PATCH] Fix typos --- docs/command-line-syntax.md | 2 +- git/git.go | 2 +- pkg/browser/browser.go | 2 +- pkg/cmd/pr/create/create.go | 2 +- utils/utils.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/command-line-syntax.md b/docs/command-line-syntax.md index f1cddad26..2e704fb6d 100644 --- a/docs/command-line-syntax.md +++ b/docs/command-line-syntax.md @@ -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 ` diff --git a/git/git.go b/git/git.go index 645a64fd1..be28e7bd0 100644 --- a/git/git.go +++ b/git/git.go @@ -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 diff --git a/pkg/browser/browser.go b/pkg/browser/browser.go index 139f06dfb..133b3dbb1 100644 --- a/pkg/browser/browser.go +++ b/pkg/browser/browser.go @@ -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") } diff --git a/pkg/cmd/pr/create/create.go b/pkg/cmd/pr/create/create.go index 5ccacfec0..09b2ba1f7 100644 --- a/pkg/cmd/pr/create/create.go +++ b/pkg/cmd/pr/create/create.go @@ -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. diff --git a/utils/utils.go b/utils/utils.go index 379ecc08b..69e48c150 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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()