1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:34:39 -07:00

gofmt-ify sort, sync

R=rsc
http://go/go-review/1018057
This commit is contained in:
Robert Griesemer 2009-11-04 23:25:29 -08:00
parent 314b358ab7
commit ed494c6398
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ func medianOfThree(data Interface, a, b, c int) {
if data.Less(m1, m0) {
data.Swap(m1, m0);
}
// now data[m0] <= data[m1] <= data[m2]
// now data[m0] <= data[m1] <= data[m2]
}
func swapRange(data Interface, a, b, n int) {

View File

@ -7,9 +7,9 @@
package sync_test
import (
"runtime";
. "sync";
"testing";
"runtime";
. "sync";
"testing";
)
func HammerSemaphore(s *uint32, cdone chan bool) {