From: Rob Pike Date: Wed, 29 Jun 2011 05:41:09 +0000 (+1000) Subject: regexp: document that Regexp is thread-safe. X-Git-Tag: weekly.2011-07-07~79 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d6f80e1a4c84ea8df878c43b9a89f71c2a0325a1;p=gostls13.git regexp: document that Regexp is thread-safe. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4667047 --- diff --git a/src/pkg/regexp/regexp.go b/src/pkg/regexp/regexp.go index 44da8b6710..e8d4c087cf 100644 --- a/src/pkg/regexp/regexp.go +++ b/src/pkg/regexp/regexp.go @@ -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