[#252] object/id: Fix typos in docs

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-05-25 20:22:39 +03:00 committed by LeL
parent 85affc3c93
commit 3bbf7ee15d
2 changed files with 2 additions and 5 deletions

View file

@ -16,9 +16,6 @@ import (
// message. See ReadFromV2 / WriteToV2 methods. // message. See ReadFromV2 / WriteToV2 methods.
// //
// Instances can be created using built-in var declaration. // 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 { type Address struct {
cnr cid.ID cnr cid.ID
@ -68,7 +65,7 @@ func (x Address) WriteToV2(m *refs.Address) {
m.SetContainerID(&cnr) 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 // Zero Address has zero container ID, which is incorrect according to NeoFS
// API protocol. // API protocol.

View file

@ -26,7 +26,7 @@ func idWithChecksum(cs [sha256.Size]byte) oid.ID {
return id return id
} }
// Address returns random object.Address. // Address returns random oid.Address.
func Address() oid.Address { func Address() oid.Address {
var x oid.Address var x oid.Address