summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudi Rehak <ludi317@gmail.com>2022-03-16 10:22:11 -0700
committerGopher Robot <gobot@golang.org>2022-04-29 01:00:55 +0000
commite7b0559448dc81ddfcee965152d0794f25b95da0 (patch)
tree93f75b2300b2301d95c2d2cea71e4315d17babea
parentcb6fc99b32cd5ec80e98f0eaec18bcfffba572ca (diff)
downloadgo-git-e7b0559448dc81ddfcee965152d0794f25b95da0.tar.gz
regexp/syntax: fix typo in comment
Fix typo in comment describing IsWordChar. Change-Id: Ia283813cf5662e218ee6d0411fb0c1b1ad1021f3 Reviewed-on: https://go-review.googlesource.com/c/go/+/393435 Auto-Submit: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
-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 {