docs: fix typo in comment of ExitStatus.Exit(Code|Time)

Signed-off-by: Hsing-Yu (David) Chen <davidhsingyuchen@gmail.com>
This commit is contained in:
Hsing-Yu (David) Chen 2023-04-01 00:47:39 -07:00
parent 988ee8ffef
commit 157fe6a13a

View File

@ -82,13 +82,13 @@ func (s ExitStatus) Result() (uint32, time.Time, error) {
} }
// ExitCode returns the exit code of the process. // ExitCode returns the exit code of the process.
// This is only valid is Error() returns nil // This is only valid if Error() returns nil.
func (s ExitStatus) ExitCode() uint32 { func (s ExitStatus) ExitCode() uint32 {
return s.code return s.code
} }
// ExitTime returns the exit time of the process // ExitTime returns the exit time of the process
// This is only valid is Error() returns nil // This is only valid if Error() returns nil.
func (s ExitStatus) ExitTime() time.Time { func (s ExitStatus) ExitTime() time.Time {
return s.exitedAt return s.exitedAt
} }