From e7b0559448dc81ddfcee965152d0794f25b95da0 Mon Sep 17 00:00:00 2001 From: Ludi Rehak Date: Wed, 16 Mar 2022 10:22:11 -0700 Subject: [PATCH] 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 --- src/regexp/syntax/prog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.51.0