From 3bbf7ee15d76299178c25dd501cc684ca2fb13f2 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 25 May 2022 20:22:39 +0300 Subject: [PATCH] [#252] object/id: Fix typos in docs Signed-off-by: Leonard Lyubich --- object/id/address.go | 5 +---- object/id/test/generate.go | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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