Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Jan 17, 2024
1 parent e827fb9 commit 117f20f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions comid/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (o Instance) Bytes() []byte {
return o.Value.Bytes()
}

// MarshalCBOR serializes the target Instance to CBOR
// MarshalCBOR serializes the target instance to CBOR
func (o Instance) MarshalCBOR() ([]byte, error) {
return em.Marshal(o.Value)
}
Expand Down Expand Up @@ -82,7 +82,7 @@ func (o *Instance) UnmarshalJSON(data []byte) error {
var tnv encoding.TypeAndValue

if err := json.Unmarshal(data, &tnv); err != nil {
return fmt.Errorf("Instance decoding failure: %w", err)
return fmt.Errorf("instance decoding failure: %w", err)
}

decoded, err := NewInstance(nil, tnv.Type)
Expand Down Expand Up @@ -129,7 +129,7 @@ type IInstanceValue interface {
Bytes() []byte
}

// NewUEIDInstance instantiates a new Instance with the supplied UEID identity.
// NewUEIDInstance instantiates a new instance with the supplied UEID identity.
func NewUEIDInstance(val any) (*Instance, error) {
if val == nil {
return &Instance{&TaggedUEID{}}, nil
Expand All @@ -153,7 +153,7 @@ func MustNewUEIDInstance(val any) *Instance {
return ret
}

// NewUUIDInstance instantiates a new Instance with the supplied UUID identity
// NewUUIDInstance instantiates a new instance with the supplied UUID identity
func NewUUIDInstance(val any) (*Instance, error) {
if val == nil {
return &Instance{&TaggedUUID{}}, nil
Expand All @@ -167,7 +167,7 @@ func NewUUIDInstance(val any) (*Instance, error) {
return &Instance{ret}, nil
}

// NewBytesInstance creates a New Instance of type bytes
// NewBytesInstance creates a new instance of type bytes
// The supplied interface parameter could be
// a byte slice, a pointer to a byte slice or a string
func NewBytesInstance(val any) (*Instance, error) {
Expand Down

0 comments on commit 117f20f

Please sign in to comment.