aboutsummaryrefslogtreecommitdiff
path: root/src/strconv/number.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/strconv/number.go')
-rw-r--r--src/strconv/number.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strconv/number.go b/src/strconv/number.go
index 3fa625c35f..acaed1c96e 100644
--- a/src/strconv/number.go
+++ b/src/strconv/number.go
@@ -148,7 +148,7 @@ func Atoi(s string) (int, error) {
if err != nil {
return x, toError("Atoi", s, 0, 0, err)
}
- return strconv.Atoi(s)
+ return x, nil
}
// FormatComplex converts the complex number c to a string of the