Skip to content

Commit

Permalink
fix typos in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzzed authored and asdine committed Apr 14, 2021
1 parent e19ca7a commit 984676c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/genji/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type Shell struct {

cmdSuggestions []prompt.Suggest

// context used for execution cancelation,
// context used for execution cancellation,
// these must not be used manually.
// Use getExecContext and cancelExecContext instead.
execContext context.Context
Expand Down Expand Up @@ -146,7 +146,7 @@ func Run(ctx context.Context, opts *Options) error {
return sh.runExecutor(ctx, promptExecCh)
})

// Because go-prompt doesn't handle cancelation
// Because go-prompt doesn't handle cancellation
// it is impossible to ask it to stop when the prompt.Input function
// is running.
// We run it in a non-managed goroutine with no graceful shutdown
Expand Down Expand Up @@ -295,7 +295,7 @@ func (sh *Shell) runPrompt(ctx context.Context, execCh chan (string)) error {
continue
}

// deleguate execution to the sh.runExecutor goroutine
// delegate execution to the sh.runExecutor goroutine
execCh <- input
// and wait for it to finish to display another prompt.
<-execCh
Expand Down

0 comments on commit 984676c

Please sign in to comment.