]> Cypherpunks repositories - gostls13.git/commitdiff
strings: use the builtin max function
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Mon, 7 Aug 2023 13:43:52 +0000 (13:43 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 7 Aug 2023 18:49:51 +0000 (18:49 +0000)
Change-Id: I9093c0ce822f0620152a7b911321c57bc50dc90b
GitHub-Last-Rev: dc6be231b315262e13925814b16786618ef5dad4
GitHub-Pull-Request: golang/go#61807
Reviewed-on: https://go-review.googlesource.com/c/go/+/516615
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/strings/search.go

index e5bffbbfe8e8acc75e393ab57a5adea3f5e22a40..e1ace3e79597e3cfd80620cf6e88199e0966a287 100644 (file)
@@ -115,10 +115,3 @@ func (f *stringFinder) next(text string) int {
        }
        return -1
 }
-
-func max(a, b int) int {
-       if a > b {
-               return a
-       }
-       return b
-}