From 157fe6a13a46278b71329dc4ec9eb9fe9dd2e520 Mon Sep 17 00:00:00 2001 From: "Hsing-Yu (David) Chen" Date: Sat, 1 Apr 2023 00:47:39 -0700 Subject: [PATCH] docs: fix typo in comment of ExitStatus.Exit(Code|Time) Signed-off-by: Hsing-Yu (David) Chen --- process.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process.go b/process.go index 73d8f8662..8a4c91917 100644 --- a/process.go +++ b/process.go @@ -82,13 +82,13 @@ func (s ExitStatus) Result() (uint32, time.Time, error) { } // 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 { return s.code } // 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 { return s.exitedAt }