Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (err *Error) Error() string {
return fmt.Sprintf("exit code: %d, %s", err.ExitCode, err.Err.Error())
}

// ExitStatus stores exit informations of the command
// ExitStatus stores exit information of the command
type ExitStatus struct {
Code int
typ exitType
Expand Down Expand Up @@ -102,7 +102,7 @@ func (tio *Timeout) signal() os.Signal {
return tio.Signal
}

// Run is synchronous interface of exucuting command and returning informations
// Run is synchronous interface of executing command and returning information
func (tio *Timeout) Run() (ExitStatus, string, string, error) {
cmd := tio.Cmd
var outBuffer, errBuffer bytes.Buffer
Expand All @@ -118,7 +118,7 @@ func (tio *Timeout) Run() (ExitStatus, string, string, error) {
return exitSt, string(outBuffer.Bytes()), string(errBuffer.Bytes()), nil
}

// RunSimple execute command and only returns integer as exit code. It is mainly for go-timeout command
// RunSimple executes command and only returns integer as exit code. It is mainly for go-timeout command
func (tio *Timeout) RunSimple(preserveStatus bool) int {
cmd := tio.Cmd

Expand Down