forked from TrueCloudLab/frostfs-sdk-go
[#252] object/id: Fix typos in docs
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
85affc3c93
commit
3bbf7ee15d
2 changed files with 2 additions and 5 deletions
|
@ -16,9 +16,6 @@ import (
|
|||
// message. See ReadFromV2 / WriteToV2 methods.
|
||||
//
|
||||
// Instances can be created using built-in var declaration.
|
||||
//
|
||||
// Note that direct typecast is not safe and may result in loss of compatibility:
|
||||
// _ = Address(refs.Address{}) // not recommended
|
||||
type Address struct {
|
||||
cnr cid.ID
|
||||
|
||||
|
@ -68,7 +65,7 @@ func (x Address) WriteToV2(m *refs.Address) {
|
|||
m.SetContainerID(&cnr)
|
||||
}
|
||||
|
||||
// Container sets unique identifier of the NeoFS object container.
|
||||
// Container returns unique identifier of the NeoFS object container.
|
||||
//
|
||||
// Zero Address has zero container ID, which is incorrect according to NeoFS
|
||||
// API protocol.
|
||||
|
|
|
@ -26,7 +26,7 @@ func idWithChecksum(cs [sha256.Size]byte) oid.ID {
|
|||
return id
|
||||
}
|
||||
|
||||
// Address returns random object.Address.
|
||||
// Address returns random oid.Address.
|
||||
func Address() oid.Address {
|
||||
var x oid.Address
|
||||
|
||||
|
|
Loading…
Reference in a new issue