mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ func (i *instr) print() {
|
|||
|
||||
// Regexp is the representation of a compiled regular expression.
|
||||
// The public interface is entirely through methods.
|
||||
// A Regexp is safe for concurrent use by multiple goroutines.
|
||||
type Regexp struct {
|
||||
expr string // the original expression
|
||||
prefix string // initial plain text string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue