]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof/internal/profile: use idiomatic swapping
authorIskander Sharipov <quasilyte@gmail.com>
Mon, 26 Nov 2018 08:40:32 +0000 (11:40 +0300)
committerBryan C. Mills <bcmills@google.com>
Sat, 2 Mar 2019 05:10:52 +0000 (05:10 +0000)
commit342764a21606ba6f964400cc747ee6c9a88fc959
treea0d382d3c1f8fbf304e0b0c89f7db1144a496a26
parentd346a9b7725b5313ddda3913cbcd5ff5fba0c909
runtime/pprof/internal/profile: use idiomatic swapping

gogrep found only one such case with the pattern below:

$tmp := $x; $x = $y; $y = $tmp

R=1.13

Change-Id: I6e46fb5ef2887f24fa9fc451323a8cef272e2886
Reviewed-on: https://go-review.googlesource.com/c/151200
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/runtime/pprof/internal/profile/profile.go