Skip to content

Commit c6513bc

Browse files
ianlancetaylorrsc
authored andcommitted
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 <[email protected]> Reviewed-by: Russ Cox <[email protected]>
1 parent 304f769 commit c6513bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/fs/glob.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type GlobFS interface {
2222
// Glob returns the names of all files matching pattern or nil
2323
// if there is no matching file. The syntax of patterns is the same
2424
// as in path.Match. The pattern may describe hierarchical names such as
25-
// /usr/*/bin/ed (assuming the Separator is '/').
25+
// usr/*/bin/ed.
2626
//
2727
// Glob ignores file system errors such as I/O errors reading directories.
2828
// The only possible returned error is path.ErrBadPattern, reporting that

0 commit comments

Comments
 (0)