1
0
mirror of https://github.com/golang/go synced 2024-10-02 06:28:33 -06: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:
Rob Pike 2011-06-29 15:41:09 +10:00
parent c756a1954c
commit d6f80e1a4c

View File

@ -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