aboutsummaryrefslogtreecommitdiff
path: root/src/regexp
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2022-11-11 19:22:35 +0800
committerGopher Robot <gobot@golang.org>2022-11-18 17:59:44 +0000
commitb2faff18ce28edad98303d2c3134dec1331fd7b5 (patch)
tree2161dfe37742a6be201f506abf0d4f20533e8d76 /src/regexp
parent893964b9727a3dfcadab75c0f6b3c6b683b9bae0 (diff)
downloadgo-b2faff18ce28edad98303d2c3134dec1331fd7b5.tar.gz
go-b2faff18ce28edad98303d2c3134dec1331fd7b5.zip
all: add missing periods in comments
Change-Id: I69065f8adf101fdb28682c55997f503013a50e29 Reviewed-on: https://go-review.googlesource.com/c/go/+/449757 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Joedian Reid <joedian@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Joedian Reid <joedian@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/regexp')
-rw-r--r--src/regexp/onepass.go4
-rw-r--r--src/regexp/regexp.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/regexp/onepass.go b/src/regexp/onepass.go
index 89040d7b0e..b3066e88ee 100644
--- a/src/regexp/onepass.go
+++ b/src/regexp/onepass.go
@@ -37,7 +37,7 @@ type onePassInst struct {
// regexp must start with. Complete is true if the prefix
// is the entire match. Pc is the index of the last rune instruction
// in the string. The onePassPrefix skips over the mandatory
-// EmptyBeginText
+// EmptyBeginText.
func onePassPrefix(p *syntax.Prog) (prefix string, complete bool, pc uint32) {
i := &p.Inst[p.Start]
if i.Op != syntax.InstEmptyWidth || (syntax.EmptyOp(i.Arg))&syntax.EmptyBeginText == 0 {
@@ -218,7 +218,7 @@ func cleanupOnePass(prog *onePassProg, original *syntax.Prog) {
}
}
-// onePassCopy creates a copy of the original Prog, as we'll be modifying it
+// onePassCopy creates a copy of the original Prog, as we'll be modifying it.
func onePassCopy(prog *syntax.Prog) *onePassProg {
p := &onePassProg{
Start: prog.Start,
diff --git a/src/regexp/regexp.go b/src/regexp/regexp.go
index 7958a39728..990c06e891 100644
--- a/src/regexp/regexp.go
+++ b/src/regexp/regexp.go
@@ -270,7 +270,7 @@ func (re *Regexp) put(m *machine) {
matchPool[re.mpool].Put(m)
}
-// minInputLen walks the regexp to find the minimum length of any matchable input
+// minInputLen walks the regexp to find the minimum length of any matchable input.
func minInputLen(re *syntax.Regexp) int {
switch re.Op {
default: