diff --git a/regex/compile.go b/regex/compile.go index 8dbcf37..9a703b9 100644 --- a/regex/compile.go +++ b/regex/compile.go @@ -1157,7 +1157,7 @@ func Compile(re string, flags ...ReFlag) (Reg, error) { return reg, nil } -// MustCompile panicks if Compile returns an error. They are identical in all other respects. +// MustCompile panics if Compile returns an error. They are identical in all other respects. func MustCompile(re string, flags ...ReFlag) Reg { reg, err := Compile(re, flags...) if err != nil {