Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1888875

Browse files
cuishuanggopherbot
authored andcommitted
regexp: fix a few function names on comments
Change-Id: I192dd34c677e52e16f0ef78e1dae58a78f6d1aac GitHub-Last-Rev: 1638a74 GitHub-Pull-Request: #55967 Reviewed-on: https://go-review.googlesource.com/c/go/+/436885 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
1 parent 82e357d commit 1888875

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/regexp/onepass.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ type onePassInst struct {
3333
Next []uint32
3434
}
3535

36-
// OnePassPrefix returns a literal string that all matches for the
36+
// onePassPrefix returns a literal string that all matches for the
3737
// regexp must start with. Complete is true if the prefix
3838
// is the entire match. Pc is the index of the last rune instruction
39-
// in the string. The OnePassPrefix skips over the mandatory
39+
// in the string. The onePassPrefix skips over the mandatory
4040
// EmptyBeginText
4141
func onePassPrefix(p *syntax.Prog) (prefix string, complete bool, pc uint32) {
4242
i := &p.Inst[p.Start]
@@ -68,7 +68,7 @@ func onePassPrefix(p *syntax.Prog) (prefix string, complete bool, pc uint32) {
6868
return buf.String(), complete, pc
6969
}
7070

71-
// OnePassNext selects the next actionable state of the prog, based on the input character.
71+
// onePassNext selects the next actionable state of the prog, based on the input character.
7272
// It should only be called when i.Op == InstAlt or InstAltMatch, and from the one-pass machine.
7373
// One of the alternates may ultimately lead without input to end of line. If the instruction
7474
// is InstAltMatch the path to the InstMatch is in i.Out, the normal node in i.Next.

‎src/regexp/syntax/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ func appendClass(r []rune, x []rune) []rune {
18001800
return r
18011801
}
18021802

1803-
// appendFolded returns the result of appending the case folding of the class x to the class r.
1803+
// appendFoldedClass returns the result of appending the case folding of the class x to the class r.
18041804
func appendFoldedClass(r []rune, x []rune) []rune {
18051805
for i := 0; i < len(x); i += 2 {
18061806
r = appendFoldedRange(r, x[i], x[i+1])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /