Skip to content

Commit 6d25d3f

Browse files
author
adeinega
committed
Fix typos here and there.
Signed-off-by: Andrii Deinega [email protected]
1 parent f637d45 commit 6d25d3f

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ because RFC 8949 treats CBOR data item with remaining bytes as malformed.
681681
Other useful functions:
682682
- `Diagnose`, `DiagnoseFirst` produce human-readable [Extended Diagnostic Notation](https://www.rfc-editor.org/rfc/rfc8610.html#appendix-G) from CBOR data.
683683
- `UnmarshalFirst` decodes first CBOR data item and return any remaining bytes.
684-
- `Wellformed` returns true if the the CBOR data item is well-formed.
684+
- `Wellformed` returns true if the CBOR data item is well-formed.
685685

686686
Interfaces identical or comparable to Go `encoding` packages include:
687687
`Marshaler`, `Unmarshaler`, `BinaryMarshaler`, and `BinaryUnmarshaler`.

bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type coseKey struct {
4545
IV []byte `cbor:"5,keyasint,omitempty"`
4646
CrvOrNOrK RawMessage `cbor:"-1,keyasint,omitempty"` // K for symmetric keys, Crv for elliptic curve keys, N for RSA modulus
4747
XOrE RawMessage `cbor:"-2,keyasint,omitempty"` // X for curve x-coordinate, E for RSA public exponent
48-
Y RawMessage `cbor:"-3,keyasint,omitempty"` // Y for curve y-cooridate
48+
Y RawMessage `cbor:"-3,keyasint,omitempty"` // Y for curve y-coordinate
4949
D []byte `cbor:"-4,keyasint,omitempty"`
5050
}
5151

decode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
//
3737
// To unmarshal CBOR into a pointer, Unmarshal sets the pointer to nil
3838
// if CBOR data is null (0xf6) or undefined (0xf7). Otherwise, Unmarshal
39-
// unmarshals CBOR into the value pointed to by the pointer. If the
39+
// unmarshalls CBOR into the value pointed to by the pointer. If the
4040
// pointer is nil, Unmarshal creates a new value for it to point to.
4141
//
4242
// To unmarshal CBOR into an empty interface value, Unmarshal uses the

encode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ const (
319319
TimeUnixMicro
320320

321321
// TimeUnixDynamic causes time.Time to encode to a CBOR time (tag 1) with either an integer content or
322-
// or a floating point content, depending on the content's value. This option is equivalent to dynamically
322+
// a floating point content, depending on the content's value. This option is equivalent to dynamically
323323
// choosing TimeUnix if time.Time doesn't have fractional seconds, and using TimeUnixMicro if time.Time
324324
// has fractional seconds.
325325
TimeUnixDynamic

example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func ExampleMarshal_toarray() {
101101
}
102102

103103
// This example uses "keyasint" struct tag option to encode struct's field names as integer.
104-
// This feautre is very useful in handling COSE, CWT, SenML data.
104+
// This feature is very useful in handling COSE, CWT, SenML data.
105105
func ExampleMarshal_keyasint() {
106106
type Record struct {
107107
Name string `cbor:"1,keyasint"`
@@ -488,7 +488,7 @@ func Example_cOSE() {
488488
IV []byte `cbor:"5,keyasint,omitempty"`
489489
CrvOrNOrK cbor.RawMessage `cbor:"-1,keyasint,omitempty"` // K for symmetric keys, Crv for elliptic curve keys, N for RSA modulus
490490
XOrE cbor.RawMessage `cbor:"-2,keyasint,omitempty"` // X for curve x-coordinate, E for RSA public exponent
491-
Y cbor.RawMessage `cbor:"-3,keyasint,omitempty"` // Y for curve y-cooridate
491+
Y cbor.RawMessage `cbor:"-3,keyasint,omitempty"` // Y for curve y-coordinate
492492
D []byte `cbor:"-4,keyasint,omitempty"`
493493
}
494494
// Data from https://tools.ietf.org/html/rfc8392#appendix-A section A.2

tag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"sync"
1111
)
1212

13-
// Tag represents a tagged data item (CBOR major type 6), comprising a tag number and the unmarshaled tag content.
13+
// Tag represents a tagged data item (CBOR major type 6), comprising a tag number and the unmarshalled tag content.
1414
// NOTE: The same encoding and decoding options that apply to untagged CBOR data items also applies to tag content
1515
// during encoding and decoding.
1616
type Tag struct {

0 commit comments

Comments
 (0)