Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jan 5, 2025
1 parent fe0b581 commit deae38d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/typing/converters/string_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ func (BooleanConverter) Convert(value any) (string, error) {
case bool:
return fmt.Sprint(castedValue), nil
default:
// First try to cast the value into a string and see if we can parse it
// Try to cast the value into a string and see if we can parse it
// If not, then return an error
switch strings.ToLower(fmt.Sprint(value)) {
case "0", "false":
return "false", nil
Expand Down

0 comments on commit deae38d

Please sign in to comment.