[#127] apistatus: Fix grammar of fromStatusV2 method docs

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-02-01 14:55:21 +03:00 committed by Alex Vanin
parent 0fb22361a3
commit 9414f42aa3
3 changed files with 4 additions and 4 deletions

View file

@ -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
}

View file

@ -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

View file

@ -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
}