Commit 8251e72a authored by Alex Brainman's avatar Alex Brainman

path: fix comment for Split()

R=golang-dev
CC=golang-dev
https://golang.org/cl/1905050
parent d9e2631b
...@@ -104,7 +104,7 @@ func Clean(path string) string { ...@@ -104,7 +104,7 @@ func Clean(path string) string {
// Split splits path immediately following the final slash, // Split splits path immediately following the final slash,
// separating it into a directory and file name component. // 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. // file set to path.
func Split(path string) (dir, file string) { func Split(path string) (dir, file string) {
for i := len(path) - 1; i >= 0; i-- { for i := len(path) - 1; i >= 0; i-- {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment