aboutsummaryrefslogtreecommitdiff
path: root/src/strconv/atoc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/strconv/atoc.go')
-rw-r--r--src/strconv/atoc.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/strconv/atoc.go b/src/strconv/atoc.go
index 8cf975d3e1..560bd7920d 100644
--- a/src/strconv/atoc.go
+++ b/src/strconv/atoc.go
@@ -4,6 +4,8 @@
package strconv
+import "internal/stringslite"
+
const fnParseComplex = "ParseComplex"
// convErr splits an error returned by parseFloatPrefix
@@ -11,7 +13,7 @@ const fnParseComplex = "ParseComplex"
func convErr(err error, s string) (syntax, range_ error) {
if x, ok := err.(*NumError); ok {
x.Func = fnParseComplex
- x.Num = cloneString(s)
+ x.Num = stringslite.Clone(s)
if x.Err == ErrRange {
return nil, x
}