Skip to content

Commit ce1c956

Browse files
joeybloggsjoeybloggs
authored andcommitted
add parseBool error using names params.
1 parent e02e36e commit ce1c956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ func parseBool(str string) (bool, error) {
4242

4343
// strconv.NumError mimicing exactly the strconv.ParseBool(..) error and type
4444
// to ensure compatibility with std library and beyond.
45-
return false, &strconv.NumError{"ParseBool", str, strconv.ErrSyntax}
45+
return false, &strconv.NumError{Func: "ParseBool", Num: str, Err: strconv.ErrSyntax}
4646
}

0 commit comments

Comments
 (0)