mirror of
https://github.com/golang/go
synced 2024-11-22 22:10:03 -07:00
regexp/syntax: update documentation for Parse.
Syntax description was moved to the top level comment of this package. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/11536043
This commit is contained in:
parent
ef12bbfc9d
commit
b6f841733b
@ -651,7 +651,7 @@ func literalRegexp(s string, flags Flags) *Regexp {
|
||||
|
||||
// Parse parses a regular expression string s, controlled by the specified
|
||||
// Flags, and returns a regular expression parse tree. The syntax is
|
||||
// described in the top-level comment for package regexp.
|
||||
// described in the top-level comment.
|
||||
func Parse(s string, flags Flags) (*Regexp, error) {
|
||||
if flags&Literal != 0 {
|
||||
// Trivial parser for literal string.
|
||||
|
Loading…
Reference in New Issue
Block a user