You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Muddz
changed the title
Compile() function in regex/syntax/compile.go always returns a nil error
Compile() function in regex/syntax/compile.go can only return a nil error
Feb 17, 2021
seankhliao
changed the title
Compile() function in regex/syntax/compile.go can only return a nil error
regexp/syntax: Compile can only return a nil error
Feb 17, 2021
I can't see any reason why func Compile(re *Regexp) (*Prog, error){} in regexp/syntax/compile.go should return any error objects at all. It will always just return a
nil
which makes this error check in regexp/regexp.go unnecessary too.go env
OutputThe text was updated successfully, but these errors were encountered: