]> Cypherpunks repositories - gostls13.git/commitdiff
gofmt-ify sort, sync
authorRobert Griesemer <gri@golang.org>
Thu, 5 Nov 2009 07:25:29 +0000 (23:25 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 5 Nov 2009 07:25:29 +0000 (23:25 -0800)
R=rsc
http://go/go-review/1018057

src/pkg/sort/sort.go
src/pkg/sync/mutex_test.go

index 1e9832b408d0a12638ac9df6f8d44501f49de0d2..ce7408b90c584d3aeeefbc729f0f89f61a96c7d3 100644 (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) {
index d7be79fff2deb3c3c3191d0da0b7fd6d93901caf..03490af1226b246a77bee03ec3548b15788a42d0 100644 (file)
@@ -7,9 +7,9 @@
 package sync_test
 
 import (
-               "runtime";
-       .       "sync";
-               "testing";
+       "runtime";
+       . "sync";
+       "testing";
 )
 
 func HammerSemaphore(s *uint32, cdone chan bool) {