Fixed typo
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user