diff --git a/object/id/address.go b/object/id/address.go index 4208a89..5cda2b0 100644 --- a/object/id/address.go +++ b/object/id/address.go @@ -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. diff --git a/object/id/test/generate.go b/object/id/test/generate.go index 8a7e035..2757584 100644 --- a/object/id/test/generate.go +++ b/object/id/test/generate.go @@ -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