1
0
mirror of https://github.com/golang/go synced 2024-09-25 13:30:12 -06:00

syscall: fix typo in namei doc comment.

LGTM=dave
R=rsc, dave
CC=golang-codereviews
https://golang.org/cl/112420044
This commit is contained in:
David Symonds 2014-07-22 10:09:32 +10:00
parent 446bfffcd6
commit d9079cc883

View 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.