From f5c495e11717489ea6e531e043dbd3ac89e1a1f4 Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:09:26 +0100 Subject: [PATCH] pattern: fix outdated comment, and add godoc links TranslatePattern and QuotePattern were renamed Regexp and QuoteMeta in 2019 when code was moved out "syntax" package to "pattern" one. See 2e72e3c7a085f23431db3c6cfb01da390fd5003c --- pattern/pattern.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pattern/pattern.go b/pattern/pattern.go index 99fd0ef3..23bf29fc 100644 --- a/pattern/pattern.go +++ b/pattern/pattern.go @@ -282,8 +282,8 @@ func charClass(s string) (string, error) { // For example, HasMeta(`foo\*bar`) returns false, but HasMeta(`foo*bar`) // returns true. // -// This can be useful to avoid extra work, like TranslatePattern. Note that this -// function cannot be used to avoid QuotePattern, as backslashes are quoted by +// This can be useful to avoid extra work, like [Regexp]. Note that this +// function cannot be used to avoid [QuoteMeta], as backslashes are quoted by // that function but ignored here. func HasMeta(pat string, mode Mode) bool { for i := 0; i < len(pat); i++ {