summaryrefslogtreecommitdiff
path: root/src/pkg/regexp/regexp.go
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-07-08 09:16:22 +0200
committerOndřej Surý <ondrej@sury.org>2011-07-08 09:16:22 +0200
commitab23f6dab91e6ec615481c4b3e77e4639c3f871b (patch)
treef897fd3be56fdc3599a88df375c76bc172108fd1 /src/pkg/regexp/regexp.go
parent8d00b02d82d86abe51773dc2c1751843bb538ae5 (diff)
downloadgolang-ab23f6dab91e6ec615481c4b3e77e4639c3f871b.tar.gz
Imported Upstream version 2011.07.07upstream-weekly/2011.07.07
Diffstat (limited to 'src/pkg/regexp/regexp.go')
-rw-r--r--src/pkg/regexp/regexp.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/regexp/regexp.go b/src/pkg/regexp/regexp.go
index 44da8b671..e8d4c087c 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