mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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-- {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue