mirror of
https://github.com/golang/go
synced 2024-11-23 19:40:08 -07:00
path: fix comment for Split()
R=golang-dev CC=golang-dev https://golang.org/cl/1905050
This commit is contained in:
parent
d9e2631b53
commit
8251e72aea
@ -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-- {
|
||||||
|
Loading…
Reference in New Issue
Block a user