1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:34:39 -07:00
go/src/regexp
Russ Cox 4d9ecde30a regexp/syntax: fix comment on p.literal and simplify
p.literal's doc comment said it returned a value but it doesn't.
While we're here, p.newLiteral is only called from p.literal,
so simplify the code by merging the two.

Change-Id: Ia357937a99f4e7473f0f1ec837113a39eaeb83d4
Reviewed-on: https://go-review.googlesource.com/c/go/+/222659
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-04-17 22:12:02 +00:00
..
syntax regexp/syntax: fix comment on p.literal and simplify 2020-04-17 22:12:02 +00:00
testdata
all_test.go regexp: add (*Regexp).SubexpIndex 2020-04-10 09:38:07 +00:00
backtrack.go std: remove unused bits of code all over the place 2019-09-02 12:57:37 +00:00
example_test.go regexp: add (*Regexp).SubexpIndex 2020-04-10 09:38:07 +00:00
exec2_test.go
exec_test.go regexp: skip long-running benchmarks if -short is specified 2019-10-17 19:53:52 +00:00
exec.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
find_test.go regexp: limit the capacity of slices of bytes returned by FindX 2019-02-26 23:51:17 +00:00
onepass_test.go regexp: optimize for provably too short inputs 2019-05-15 15:28:22 +00:00
onepass.go
regexp.go regexp: add (*Regexp).SubexpIndex 2020-04-10 09:38:07 +00:00