Commit d6f80e1a authored by Rob Pike's avatar Rob Pike

regexp: document that Regexp is thread-safe.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4667047
parent c756a195
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment