diff options
Diffstat (limited to 'src/pkg/path/match.go')
| -rw-r--r-- | src/pkg/path/match.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/path/match.go b/src/pkg/path/match.go index ba7e4de321..8154bf6025 100644 --- a/src/pkg/path/match.go +++ b/src/pkg/path/match.go @@ -10,6 +10,7 @@ import ( "unicode/utf8" ) +// ErrBadPattern indicates a globbing pattern was malformed. var ErrBadPattern = errors.New("syntax error in pattern") // Match returns true if name matches the shell file name pattern. @@ -31,7 +32,8 @@ 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 error return is when pattern is malformed. +// The only possible returned error is ErrBadPattern, when pattern +// is malformed. // func Match(pattern, name string) (matched bool, err error) { Pattern: |
