diff options
Diffstat (limited to 'src/strings/strings.go')
| -rw-r--r-- | src/strings/strings.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/strings/strings.go b/src/strings/strings.go index 28289a35bf..367e0a8e24 100644 --- a/src/strings/strings.go +++ b/src/strings/strings.go @@ -74,6 +74,7 @@ func ContainsRune(s string, r rune) bool { } // ContainsFunc reports whether any Unicode code points r within s satisfy f(r). +// It stops as soon as a call to f returns true. func ContainsFunc(s string, f func(rune) bool) bool { return IndexFunc(s, f) >= 0 } |
