From: Ludi Rehak Date: Wed, 16 Mar 2022 17:22:11 +0000 (-0700) Subject: regexp/syntax: fix typo in comment X-Git-Tag: go1.19beta1~511 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e7b0559448dc81ddfcee965152d0794f25b95da0;p=gostls13.git 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 Run-TryBot: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov Reviewed-by: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Run-TryBot: Dmitri Shuralyov Auto-Submit: Ian Lance Taylor TryBot-Result: Gopher Robot --- 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 {