aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/filepath
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-06-28 09:43:14 +1000
committerRob Pike <r@golang.org>2011-06-28 09:43:14 +1000
commitebb1566a46f2f5b2c06ef0f7ad5f7084dce0aed9 (patch)
tree62c412f896baa504ae4a26d452f8cac6ce1aeed8 /src/pkg/path/filepath
parent82a8afdf1411bbe5b08b09d1e94a8d1c4fb5635c (diff)
downloadgo-ebb1566a46f2f5b2c06ef0f7ad5f7084dce0aed9.tar.xz
strings.Split: make the default to split all.
Change the signature of Split to have no count, assuming a full split, and rename the existing Split with a count to SplitN. Do the same to package bytes. Add a gofix module. R=adg, dsymonds, alex.brainman, rsc CC=golang-dev https://golang.org/cl/4661051
Diffstat (limited to 'src/pkg/path/filepath')
-rw-r--r--src/pkg/path/filepath/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/path/filepath/path.go b/src/pkg/path/filepath/path.go
index dcd8017add..b181483ed6 100644
--- a/src/pkg/path/filepath/path.go
+++ b/src/pkg/path/filepath/path.go
@@ -136,7 +136,7 @@ func SplitList(path string) []string {
if path == "" {
return []string{}
}
- return strings.Split(path, string(ListSeparator), -1)
+ return strings.Split(path, string(ListSeparator))
}
// Split splits path immediately following the final Separator,