mirror of https://github.com/gobwas/glob.git
Fix example in the QuoteMeta docs
This commit is contained in:
parent
e7a84e9525
commit
2f4944f71c
2
glob.go
2
glob.go
|
@ -61,7 +61,7 @@ func MustCompile(pattern string, separators ...rune) Glob {
|
|||
}
|
||||
|
||||
// QuoteMeta returns a string that quotes all glob pattern meta characters
|
||||
// inside the argument text; For example, QuoteMeta(`{foo*}`) returns `\[foo\*\]`.
|
||||
// inside the argument text; For example, QuoteMeta(`{foo*}`) returns `\{foo\*\}`.
|
||||
func QuoteMeta(s string) string {
|
||||
b := make([]byte, 2*len(s))
|
||||
|
||||
|
|
Loading…
Reference in New Issue