From 9414f42aa34935eab033a187d1d0b64c8afa85a8 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 1 Feb 2022 14:55:21 +0300 Subject: [PATCH] [#127] apistatus: Fix grammar of `fromStatusV2` method docs Signed-off-by: Leonard Lyubich --- client/status/common.go | 4 ++-- client/status/success.go | 2 +- client/status/unrecognized.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/status/common.go b/client/status/common.go index 92025dd6..e5051c0a 100644 --- a/client/status/common.go +++ b/client/status/common.go @@ -21,7 +21,7 @@ func (x ServerInternal) Error() string { ) } -// implements method of the FromStatusV2 local interface. +// implements local interface defined in FromStatusV2 func. func (x *ServerInternal) fromStatusV2(st *status.Status) { x.v2 = *st } @@ -69,7 +69,7 @@ func (x WrongMagicNumber) Error() string { ) } -// implements method of the FromStatusV2 local interface. +// implements local interface defined in FromStatusV2 func. func (x *WrongMagicNumber) fromStatusV2(st *status.Status) { x.v2 = *st } diff --git a/client/status/success.go b/client/status/success.go index 9fc5be9a..83e5fc9e 100644 --- a/client/status/success.go +++ b/client/status/success.go @@ -11,7 +11,7 @@ type SuccessDefaultV2 struct { v2 *status.Status } -// implements method of the FromStatusV2 local interface. +// implements local interface defined in FromStatusV2 func. func (x *SuccessDefaultV2) fromStatusV2(st *status.Status) { x.isNil = st == nil x.v2 = st diff --git a/client/status/unrecognized.go b/client/status/unrecognized.go index 6feb5bca..2d6c8e67 100644 --- a/client/status/unrecognized.go +++ b/client/status/unrecognized.go @@ -12,7 +12,7 @@ func (x unrecognizedStatusV2) Error() string { return errMessageStatusV2("unrecognized", x.v2.Message()) } -// implements method of the FromStatusV2 local interface. +// implements local interface defined in FromStatusV2 func. func (x *unrecognizedStatusV2) fromStatusV2(st *status.Status) { x.v2 = *st }