Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Yassine Ennebati <4570448+yaziine@users.noreply.github.com>
  • Loading branch information
asdine and yaziine committed Jul 22, 2020
1 parent f5c6d67 commit fbfc49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion document/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (v Value) CastAsBool() (Value, error) {
// Bool: returns 1 if true, 0 if false.
// Double: cuts off the decimal and remaining numbers.
// Text: uses strconv.ParseFloat to determine the double value,
// then casts it to an integer. it fails if the text doesn't
// then casts it to an integer. It fails if the text doesn't
// contain a valid float value.
// Any other type is considered an invalid cast.
func (v Value) CastAsInteger() (Value, error) {
Expand Down

0 comments on commit fbfc49a

Please sign in to comment.