summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Eklind <r.eklind.87@gmail.com>2014-11-11 18:52:07 -0800
committerRobin Eklind <r.eklind.87@gmail.com>2014-11-11 18:52:07 -0800
commitd2aa0361764efed97d01bea3f873fa70a59c16a5 (patch)
treee20c40b6034ab9d61aa5736aa08e31b545b62202
parent9067a9e455b8299e1a74132c861d78f608092cdf (diff)
downloadgo-d2aa0361764efed97d01bea3f873fa70a59c16a5.tar.gz
regexp/syntax: Clarify comment of OpAnyCharNotNL.
LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://codereview.appspot.com/171560043 Committer: Ian Lance Taylor <iant@golang.org>
-rw-r--r--src/regexp/syntax/regexp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp/syntax/regexp.go b/src/regexp/syntax/regexp.go
index 329a90e01..cea7d9e04 100644
--- a/src/regexp/syntax/regexp.go
+++ b/src/regexp/syntax/regexp.go
@@ -39,7 +39,7 @@ const (
OpEmptyMatch // matches empty string
OpLiteral // matches Runes sequence
OpCharClass // matches Runes interpreted as range pair list
- OpAnyCharNotNL // matches any character
+ OpAnyCharNotNL // matches any character except newline
OpAnyChar // matches any character
OpBeginLine // matches empty string at beginning of line
OpEndLine // matches empty string at end of line