aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath/match.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/path/filepath/match.go')
-rw-r--r--src/path/filepath/match.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/path/filepath/match.go b/src/path/filepath/match.go
index b5cc4b8cf3..12f0bfa7d3 100644
--- a/src/path/filepath/match.go
+++ b/src/path/filepath/match.go
@@ -35,7 +35,7 @@ var ErrBadPattern = errors.New("syntax error in pattern")
// lo '-' hi matches character c for lo <= c <= hi
//
// Match requires pattern to match all of name, not just a substring.
-// The only possible returned error is ErrBadPattern, when pattern
+// The only possible returned error is [ErrBadPattern], when pattern
// is malformed.
//
// On Windows, escaping is disabled. Instead, '\\' is treated as
@@ -233,11 +233,11 @@ func getEsc(chunk string) (r rune, nchunk string, err error) {
// 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 Match. The pattern may describe hierarchical names such as
-// /usr/*/bin/ed (assuming the Separator is '/').
+// as in [Match]. The pattern may describe hierarchical names such as
+// /usr/*/bin/ed (assuming the [Separator] is '/').
//
// Glob ignores file system errors such as I/O errors reading directories.
-// The only possible returned error is ErrBadPattern, when pattern
+// The only possible returned error is [ErrBadPattern], when pattern
// is malformed.
func Glob(pattern string) (matches []string, err error) {
return globWithLimit(pattern, 0)