Skip to content

Commit 2030790

Browse files
moriocaMorioka Toshimasajasdel
authored
Fix minor typos (#1645)
Fixes typos on Number type's methods. Co-authored-by: Morioka Toshimasa <[email protected]> Co-authored-by: Jason Del Ponte <[email protected]>
1 parent 9f608f2 commit 2030790

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"id": "c582cb29-eab9-4116-aee5-841b9e7a5fe9",
3+
"type": "documentation",
4+
"description": "Fixes documentation typos in Number type's helper methods",
5+
"modules": [
6+
"feature/dynamodb/attributevalue",
7+
"feature/dynamodbstreams/attributevalue"
8+
]
9+
}

feature/dynamodb/attributevalue/decode.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,19 +858,19 @@ func indirect(v reflect.Value, opts indirectOptions) (Unmarshaler, reflect.Value
858858
// A Number represents a Attributevalue number literal.
859859
type Number string
860860

861-
// Float64 attempts to cast the number ot a float64, returning
861+
// Float64 attempts to cast the number to a float64, returning
862862
// the result of the case or error if the case failed.
863863
func (n Number) Float64() (float64, error) {
864864
return strconv.ParseFloat(string(n), 64)
865865
}
866866

867-
// Int64 attempts to cast the number ot a int64, returning
867+
// Int64 attempts to cast the number to a int64, returning
868868
// the result of the case or error if the case failed.
869869
func (n Number) Int64() (int64, error) {
870870
return strconv.ParseInt(string(n), 10, 64)
871871
}
872872

873-
// Uint64 attempts to cast the number ot a uint64, returning
873+
// Uint64 attempts to cast the number to a uint64, returning
874874
// the result of the case or error if the case failed.
875875
func (n Number) Uint64() (uint64, error) {
876876
return strconv.ParseUint(string(n), 10, 64)

feature/dynamodbstreams/attributevalue/decode.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -858,19 +858,19 @@ func indirect(v reflect.Value, opts indirectOptions) (Unmarshaler, reflect.Value
858858
// A Number represents a Attributevalue number literal.
859859
type Number string
860860

861-
// Float64 attempts to cast the number ot a float64, returning
861+
// Float64 attempts to cast the number to a float64, returning
862862
// the result of the case or error if the case failed.
863863
func (n Number) Float64() (float64, error) {
864864
return strconv.ParseFloat(string(n), 64)
865865
}
866866

867-
// Int64 attempts to cast the number ot a int64, returning
867+
// Int64 attempts to cast the number to a int64, returning
868868
// the result of the case or error if the case failed.
869869
func (n Number) Int64() (int64, error) {
870870
return strconv.ParseInt(string(n), 10, 64)
871871
}
872872

873-
// Uint64 attempts to cast the number ot a uint64, returning
873+
// Uint64 attempts to cast the number to a uint64, returning
874874
// the result of the case or error if the case failed.
875875
func (n Number) Uint64() (uint64, error) {
876876
return strconv.ParseUint(string(n), 10, 64)

0 commit comments

Comments
 (0)