]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix typo in namei doc comment.
authorDavid Symonds <dsymonds@golang.org>
Tue, 22 Jul 2014 00:09:32 +0000 (10:09 +1000)
committerDavid Symonds <dsymonds@golang.org>
Tue, 22 Jul 2014 00:09:32 +0000 (10:09 +1000)
LGTM=dave
R=rsc, dave
CC=golang-codereviews
https://golang.org/cl/112420044

src/pkg/syscall/fs_nacl.go

index 657bc9d245f048d2d72f49dd2e5d600d096cbbfc..4abc9b81c92085b5991e256d0420c6c38e2e1a0e 100644 (file)
@@ -186,7 +186,7 @@ func skipelem(path string) (elem, rest string) {
 
 // namei translates a file system path name into an inode.
 // If parent is false, the returned ip corresponds to the given name, and elem is the empty string.
-// If parent is false, the walk stops at the next-to-last element in the name,
+// If parent is true, the walk stops at the next-to-last element in the name,
 // so that ip is the parent directory and elem is the final element in the path.
 func (fs *fsys) namei(path string, parent bool) (ip *inode, elem string, err error) {
        // Reject NUL in name.