mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: use "reports whether" in place of "returns true if(f)"
Comment changes only. Change-Id: I56848814564c4aa0988b451df18bebdfc88d6d94 Reviewed-on: https://go-review.googlesource.com/7721 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
fcb895feef
commit
2adc4e8927
47 changed files with 100 additions and 102 deletions
|
|
@ -189,7 +189,7 @@ Loop:
|
|||
|
||||
const noMatch = -1
|
||||
|
||||
// MatchRune returns true if the instruction matches (and consumes) r.
|
||||
// MatchRune reports whether the instruction matches (and consumes) r.
|
||||
// It should only be called when i.Op == InstRune.
|
||||
func (i *Inst) MatchRune(r rune) bool {
|
||||
return i.MatchRunePos(r) != noMatch
|
||||
|
|
@ -256,7 +256,7 @@ func wordRune(r rune) bool {
|
|||
('0' <= r && r <= '9')
|
||||
}
|
||||
|
||||
// MatchEmptyWidth returns true if the instruction matches
|
||||
// MatchEmptyWidth reports whether the instruction matches
|
||||
// an empty string between the runes before and after.
|
||||
// It should only be called when i.Op == InstEmptyWidth.
|
||||
func (i *Inst) MatchEmptyWidth(before rune, after rune) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue