Fix example in the QuoteMeta docs

This commit is contained in:
Luke T. Shumaker 2024-01-28 12:38:18 -07:00 committed by GitHub
parent e7a84e9525
commit 2f4944f71c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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))