diff options
Diffstat (limited to 'libgo/go/strconv/atob.go')
-rw-r--r-- | libgo/go/strconv/atob.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/strconv/atob.go b/libgo/go/strconv/atob.go index 7208194..e2d87bc 100644 --- a/libgo/go/strconv/atob.go +++ b/libgo/go/strconv/atob.go @@ -4,12 +4,10 @@ package strconv -import "os" - // Atob returns the boolean value represented by the string. // It accepts 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False. // Any other value returns an error. -func Atob(str string) (value bool, err os.Error) { +func Atob(str string) (value bool, err error) { switch str { case "1", "t", "T", "true", "TRUE", "True": return true, nil |