mirror of
https://github.com/golang/go
synced 2024-11-19 13:54:56 -07:00
filepath/path: fix a comment
R=bradfitz CC=golang-dev https://golang.org/cl/4704047
This commit is contained in:
parent
469e333106
commit
f4acaa8ecd
@ -140,8 +140,8 @@ func SplitList(path string) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Split splits path immediately following the final Separator,
|
// Split splits path immediately following the final Separator,
|
||||||
// partitioning it into a directory and a file name components.
|
// separating it into a directory and file name component.
|
||||||
// If there are no separators in path, Split returns an empty base
|
// If there is no Separator in path, Split returns an empty dir
|
||||||
// and file set to path.
|
// and file set to path.
|
||||||
func Split(path string) (dir, file string) {
|
func Split(path string) (dir, file string) {
|
||||||
i := len(path) - 1
|
i := len(path) - 1
|
||||||
|
Loading…
Reference in New Issue
Block a user