diff options
| author | amdahliu <zenghao235711@gmail.com> | 2023-07-03 10:09:36 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-07-20 17:55:38 +0000 |
| commit | 47b403ad2dba61e653ec24da7d84cb9decea4939 (patch) | |
| tree | aa6e7b22e839339e2b5023275d7d42e9db1f766f /src/strings | |
| parent | 2627d2d1897741d0839fc57047741c3c8ce9ffa4 (diff) | |
| download | go-47b403ad2dba61e653ec24da7d84cb9decea4939.tar.xz | |
slices: refactor DeleteFunc to improve code readability
Reuse IndexFunc function to avoid confusing subscript indexing, and to reduce code nesting depth.
Change-Id: I309416ebf928071f71054433e078f0fda802fba8
GitHub-Last-Rev: af54738bda7f27afda5f92496363c0a68493c369
GitHub-Pull-Request: golang/go#61154
Reviewed-on: https://go-review.googlesource.com/c/go/+/507635
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/strings')
0 files changed, 0 insertions, 0 deletions
