summaryrefslogtreecommitdiff
path: root/libgo/go/strconv/atob.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/strconv/atob.go')
-rw-r--r--libgo/go/strconv/atob.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/strconv/atob.go b/libgo/go/strconv/atob.go
index 98ce750798d..720819490cb 100644
--- a/libgo/go/strconv/atob.go
+++ b/libgo/go/strconv/atob.go
@@ -16,7 +16,7 @@ func Atob(str string) (value bool, err os.Error) {
case "0", "f", "F", "false", "FALSE", "False":
return false, nil
}
- return false, &NumError{str, os.EINVAL}
+ return false, &NumError{str, ErrSyntax}
}
// Btoa returns "true" or "false" according to the value of the boolean argument