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.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/path/filepath/match.go b/src/path/filepath/match.go
index 7ccf71ee0c..3c1c22bb8a 100644
--- a/src/path/filepath/match.go
+++ b/src/path/filepath/match.go
@@ -28,13 +28,15 @@ var ErrBadPattern = errors.New("syntax error in pattern")
// '[' [ '^' ] { character-range } ']'
// character class (must be non-empty)
// c matches character c (c != '*', '?', '\\', '[')
-// '\\' c matches character c
+// '\\' c matches character c (except on Windows)
//
// character-range:
// c matches character c (c != '\\', '-', ']')
-// '\\' c matches character c
+// '\\' c matches character c (except on Windows)
// lo '-' hi matches character c for lo <= c <= hi
//
+// Path segments in the pattern must be separated by [Separator].
+//
// Match requires pattern to match all of name, not just a substring.
// The only possible returned error is [ErrBadPattern], when pattern
// is malformed.