From: Robert Griesemer Date: Thu, 5 Nov 2009 07:25:29 +0000 (-0800) Subject: gofmt-ify sort, sync X-Git-Tag: weekly.2009-11-06~57 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ed494c6398cf5172d2af7b9839583661e0cffbc0;p=gostls13.git gofmt-ify sort, sync R=rsc http://go/go-review/1018057 --- diff --git a/src/pkg/sort/sort.go b/src/pkg/sort/sort.go index 1e9832b408..ce7408b90c 100644 --- a/src/pkg/sort/sort.go +++ b/src/pkg/sort/sort.go @@ -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) { diff --git a/src/pkg/sync/mutex_test.go b/src/pkg/sync/mutex_test.go index d7be79fff2..03490af122 100644 --- a/src/pkg/sync/mutex_test.go +++ b/src/pkg/sync/mutex_test.go @@ -7,9 +7,9 @@ package sync_test import ( - "runtime"; - . "sync"; - "testing"; + "runtime"; + . "sync"; + "testing"; ) func HammerSemaphore(s *uint32, cdone chan bool) {