diff options
Diffstat (limited to 'src/bytes')
| -rw-r--r-- | src/bytes/bytes.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go index 787ea86f00..98f78f10c3 100644 --- a/src/bytes/bytes.go +++ b/src/bytes/bytes.go @@ -89,6 +89,7 @@ func ContainsRune(b []byte, r rune) bool { } // ContainsFunc reports whether any of the UTF-8-encoded code points r within b satisfy f(r). +// It stops as soon as a call to f returns true. func ContainsFunc(b []byte, f func(rune) bool) bool { return IndexFunc(b, f) >= 0 } |
