summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-04 23:25:29 -0800
committerRobert Griesemer <gri@golang.org>2009-11-04 23:25:29 -0800
commit60ec557d5f09eaedbae621626b01271236493715 (patch)
treefdf5f1ef31b99695b9e5079961b5ad09a911973a
parentd29d9b8b35622fef8c3eb253b7ad6bb46cbbc6a9 (diff)
downloadgolang-60ec557d5f09eaedbae621626b01271236493715.tar.gz
gofmt-ify sort, sync
R=rsc http://go/go-review/1018057
-rw-r--r--src/pkg/sort/sort.go2
-rw-r--r--src/pkg/sync/mutex_test.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/sort/sort.go b/src/pkg/sort/sort.go
index 1e9832b40..ce7408b90 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 d7be79fff..03490af12 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) {