From: Russ Cox Date: Wed, 29 Feb 2012 20:50:46 +0000 (-0500) Subject: path/filepath: note that SplitList is different from strings.Split X-Git-Tag: weekly.2012-03-04~81 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b47cef394b779b647dd033895dd13445451c77c5;p=gostls13.git path/filepath: note that SplitList is different from strings.Split R=golang-dev, r, bradfitz, gustavo CC=golang-dev https://golang.org/cl/5712044 --- diff --git a/src/pkg/path/filepath/path.go b/src/pkg/path/filepath/path.go index f468d33264..cfe46981f1 100644 --- a/src/pkg/path/filepath/path.go +++ b/src/pkg/path/filepath/path.go @@ -139,6 +139,7 @@ func FromSlash(path string) string { // SplitList splits a list of paths joined by the OS-specific ListSeparator, // usually found in PATH or GOPATH environment variables. +// Unlike strings.Split, SplitList returns an empty slice when passed an empty string. func SplitList(path string) []string { if path == "" { return []string{}