filepath/path: fix a comment

R=bradfitz
CC=golang-dev
https://golang.org/cl/4704047
This commit is contained in:
Robert Griesemer 2011-07-13 15:10:50 -07:00
parent 469e333106
commit f4acaa8ecd

View File

@ -140,8 +140,8 @@ func SplitList(path string) []string {
}
// Split splits path immediately following the final Separator,
// partitioning it into a directory and a file name components.
// If there are no separators in path, Split returns an empty base
// separating it into a directory and file name component.
// If there is no Separator in path, Split returns an empty dir
// and file set to path.
func Split(path string) (dir, file string) {
i := len(path) - 1