]> Cypherpunks repositories - gostls13.git/commit
net: use bytealg.LastIndexByteString
authorapocelipes <seve3r@outlook.com>
Thu, 14 Sep 2023 18:43:14 +0000 (18:43 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 15 Sep 2023 12:57:52 +0000 (12:57 +0000)
commit1fde99cd6eff725f5cc13748a43b4aef3de557c8
treec85262d3c82346b40ffa3d1dc69887d8f20be22d
parent00073c25f65947dc4a331dcc6b20cb215fb03341
net: use bytealg.LastIndexByteString

There is no need to handwrite the "last" function, the bytealg package already provides "LastIndexByteString".

Change-Id: I6000705bffe8450a10cf8f3fa716a8d4605ada1f
GitHub-Last-Rev: 6627c65fb40fad96239edd28bde27a30f9f8f544
GitHub-Pull-Request: golang/go#62647
Reviewed-on: https://go-review.googlesource.com/c/go/+/527976
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/net/dial.go
src/net/ipsock.go
src/net/parse.go