diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-02 19:34:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-12-02 19:34:41 +0000 |
commit | 506cf9aaead4f5519f5549a918d285365b44e989 (patch) | |
tree | fe0344f264049738dca876a6dd2f69e96621ca17 /libgo/go/strconv/atob.go | |
parent | bfa9b58039ceacb1bae803fbbfb049b93540f2a7 (diff) | |
download | gcc-506cf9aaead4f5519f5549a918d285365b44e989.zip gcc-506cf9aaead4f5519f5549a918d285365b44e989.tar.gz gcc-506cf9aaead4f5519f5549a918d285365b44e989.tar.bz2 |
libgo: Update to weekly.2011-11-01.
From-SVN: r181938
Diffstat (limited to 'libgo/go/strconv/atob.go')
-rw-r--r-- | libgo/go/strconv/atob.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/strconv/atob.go b/libgo/go/strconv/atob.go index 98ce750..7208194 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 |