]> Cypherpunks repositories - gostls13.git/commit
runtime: remove redundant slicing
authorStepan Shabalin <neverliberty@gmail.com>
Thu, 3 Jan 2019 10:55:15 +0000 (17:55 +0700)
committerKeith Randall <khr@golang.org>
Thu, 3 Jan 2019 18:23:07 +0000 (18:23 +0000)
commit30c0a0d33faee0355db2cb91e8599d6fd85fae76
tree491af99467c1b70e204edc415da1e48f5ebfe57b
parent374546d800124e9ab4d51b75e335a71f866f3ef8
runtime: remove redundant slicing

In the twoNonZero function in hash_test, the buffer is sliced as [:] three times. This change deletes them.

Change-Id: I0701d0c810b4f3e267f80133a0dcdb4ed81fe356
Reviewed-on: https://go-review.googlesource.com/c/156138
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/hash_test.go