1
0
mirror of https://github.com/golang/go synced 2024-11-23 17:00:07 -07:00

path: fix comment for Split()

R=golang-dev
CC=golang-dev
https://golang.org/cl/1905050
This commit is contained in:
Alex Brainman 2010-08-05 11:43:53 +10:00
parent d9e2631b53
commit 8251e72aea

View File

@ -104,7 +104,7 @@ func Clean(path string) string {
// Split splits path immediately following the final slash,
// separating it into a directory and file name component.
// If there is no slash in path, DirFile returns an empty dir and
// If there is no slash in path, Split returns an empty dir and
// file set to path.
func Split(path string) (dir, file string) {
for i := len(path) - 1; i >= 0; i-- {