Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
ed494c63
Commit
ed494c63
authored
Nov 05, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofmt-ify sort, sync
R=rsc
http://go/go-review/1018057
parent
314b358a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sort.go
src/pkg/sort/sort.go
+1
-1
mutex_test.go
src/pkg/sync/mutex_test.go
+3
-3
No files found.
src/pkg/sort/sort.go
View file @
ed494c63
...
@@ -53,7 +53,7 @@ func medianOfThree(data Interface, a, b, c int) {
...
@@ -53,7 +53,7 @@ func medianOfThree(data Interface, a, b, c int) {
if
data
.
Less
(
m1
,
m0
)
{
if
data
.
Less
(
m1
,
m0
)
{
data
.
Swap
(
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
)
{
func
swapRange
(
data
Interface
,
a
,
b
,
n
int
)
{
...
...
src/pkg/sync/mutex_test.go
View file @
ed494c63
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
package
sync_test
package
sync_test
import
(
import
(
"runtime"
;
"runtime"
;
.
"sync"
;
.
"sync"
;
"testing"
;
"testing"
;
)
)
func
HammerSemaphore
(
s
*
uint32
,
cdone
chan
bool
)
{
func
HammerSemaphore
(
s
*
uint32
,
cdone
chan
bool
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment