mirror of
https://github.com/golang/go
synced 2024-11-19 14:54:43 -07:00
regexp: document that Regexp is thread-safe.
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4667047
This commit is contained in:
parent
c756a1954c
commit
d6f80e1a4c
@ -158,6 +158,7 @@ func (i *instr) print() {
|
|||||||
|
|
||||||
// Regexp is the representation of a compiled regular expression.
|
// Regexp is the representation of a compiled regular expression.
|
||||||
// The public interface is entirely through methods.
|
// The public interface is entirely through methods.
|
||||||
|
// A Regexp is safe for concurrent use by multiple goroutines.
|
||||||
type Regexp struct {
|
type Regexp struct {
|
||||||
expr string // the original expression
|
expr string // the original expression
|
||||||
prefix string // initial plain text string
|
prefix string // initial plain text string
|
||||||
|
Loading…
Reference in New Issue
Block a user