mirror of https://github.com/golang/go.git
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.go | ||
| slices_test.go | ||
| sort.go | ||
| sort_benchmark_test.go | ||
| sort_test.go | ||
| zsortanyfunc.go | ||
| zsortordered.go | ||