From 2f4944f71cbb7ff58de30bd7498b8a5ac50c79ab Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 28 Jan 2024 12:38:18 -0700 Subject: [PATCH] Fix example in the QuoteMeta docs --- glob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glob.go b/glob.go index 2afde34..78677af 100644 --- a/glob.go +++ b/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))