diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-01-06 16:30:41 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2021-01-08 15:41:36 +0000 |
commit | c6513bca5aeaa9f9b6fe552d60f5b6c700ce0772 (patch) | |
tree | 1baefd5df2848cdd3c323361b2f3282941dbe1f3 /src/io | |
parent | 304f769ffc68e64244266b3aadbf91e6738c0064 (diff) | |
download | go-c6513bca5aeaa9f9b6fe552d60f5b6c700ce0772.tar.gz go-c6513bca5aeaa9f9b6fe552d60f5b6c700ce0772.zip |
io/fs: minor corrections to Glob doc
The documentation for Glob was copied from filepath.Glob, and needs a bit
of tweaking: paths are not rooted at slash; the separator is always '/'.
Fixes #43537
Change-Id: Id64daa137e2762b66a82a5b9e60bbe603f4e2f5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/282173
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/fs/glob.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/fs/glob.go b/src/io/fs/glob.go index 59bd1939d7..549f217542 100644 --- a/src/io/fs/glob.go +++ b/src/io/fs/glob.go @@ -22,7 +22,7 @@ type GlobFS interface { // Glob returns the names of all files matching pattern or nil // if there is no matching file. The syntax of patterns is the same // as in path.Match. The pattern may describe hierarchical names such as -// /usr/*/bin/ed (assuming the Separator is '/'). +// usr/*/bin/ed. // // Glob ignores file system errors such as I/O errors reading directories. // The only possible returned error is path.ErrBadPattern, reporting that |