forked from TrueCloudLab/frostfs-sdk-go
[#127] apistatus: Fix grammar of fromStatusV2
method docs
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0fb22361a3
commit
9414f42aa3
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue