1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:14:46 -07:00
go/src/strings
Gabriel Aszalos c82ee79247 strings: improve readability of IndexAny and LastIndexAny functions.
This change removes the check of len(chars) > 0 inside the Index and
IndexAny functions which was redundant.

Change-Id: Iffbc0f2b3332c6e31c7514b5f644b6fe7bdcfe0d
Reviewed-on: https://go-review.googlesource.com/65910
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2017-09-25 18:23:11 +00:00
..
compare_test.go
compare.go
example_test.go strings: add examples for Index functions 2017-08-09 04:43:33 +00:00
export_test.go
reader_test.go
reader.go
replace_test.go
replace.go
search_test.go
search.go
strings_amd64.go internal/cpu: new package to detect cpu features 2017-05-10 17:02:21 +00:00
strings_decl.go
strings_generic.go strings: optimize Count for amd64 2017-04-07 14:25:13 +00:00
strings_s390x.go strings: optimize Count for amd64 2017-04-07 14:25:13 +00:00
strings_test.go strings: optimize Count for amd64 2017-04-07 14:25:13 +00:00
strings.go strings: improve readability of IndexAny and LastIndexAny functions. 2017-09-25 18:23:11 +00:00
strings.s