summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regexp/syntax/prog.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp/syntax/prog.go b/src/regexp/syntax/prog.go
index ee71decb35..896cdc42c2 100644
--- a/src/regexp/syntax/prog.go
+++ b/src/regexp/syntax/prog.go
@@ -102,7 +102,7 @@ func EmptyOpContext(r1, r2 rune) EmptyOp {
return op
}
-// IsWordChar reports whether r is consider a “word character”
+// IsWordChar reports whether r is considered a “word character”
// during the evaluation of the \b and \B zero-width assertions.
// These assertions are ASCII-only: the word characters are [A-Za-z0-9_].
func IsWordChar(r rune) bool {