mirror of
https://github.com/golang/go
synced 2024-11-19 02:14:43 -07:00
b581e44739
No need for an explicit nil check. Slicing the input slice down to zero capacity also preserves nil. Change-Id: I1f53cc485373d0e65971cd87b6243650ac72612c Reviewed-on: https://go-review.googlesource.com/c/go/+/521037 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> |
||
---|---|---|
.. | ||
example_test.go | ||
slices_test.go | ||
slices.go | ||
sort_benchmark_test.go | ||
sort_test.go | ||
sort.go | ||
zsortanyfunc.go | ||
zsortordered.go |