Commit 78cee46f authored by Mikio Hara's avatar Mikio Hara

src: gofmt -w -s

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6935059
parent 0b50a5da
...@@ -128,7 +128,7 @@ func (ce colElem) tertiary() uint8 { ...@@ -128,7 +128,7 @@ func (ce colElem) tertiary() uint8 {
} else if ce&ceTypeMask == ceType1 { } else if ce&ceTypeMask == ceType1 {
return defaultTertiary return defaultTertiary
} }
// ce is a quaternary value. // ce is a quaternary value.
return 0 return 0
} }
......
...@@ -57,7 +57,7 @@ func TestRaceMapRange2(t *testing.T) { ...@@ -57,7 +57,7 @@ func TestRaceMapRange2(t *testing.T) {
m := make(map[int]int) m := make(map[int]int)
ch := make(chan bool, 1) ch := make(chan bool, 1)
go func() { go func() {
for _, _ = range m { for _ = range m {
} }
ch <- true ch <- true
}() }()
...@@ -77,7 +77,7 @@ func TestNoRaceMapRangeRange(t *testing.T) { ...@@ -77,7 +77,7 @@ func TestNoRaceMapRangeRange(t *testing.T) {
} }
ch <- true ch <- true
}() }()
for _, _ = range m { for _ = range m {
} }
<-ch <-ch
} }
......
...@@ -252,7 +252,7 @@ func TestRaceSliceRangeAppend(t *testing.T) { ...@@ -252,7 +252,7 @@ func TestRaceSliceRangeAppend(t *testing.T) {
s = append(s, 3) s = append(s, 3)
c <- true c <- true
}() }()
for _, _ = range s { for _ = range s {
} }
<-c <-c
} }
...@@ -264,7 +264,7 @@ func TestNoRaceSliceRangeAppend(t *testing.T) { ...@@ -264,7 +264,7 @@ func TestNoRaceSliceRangeAppend(t *testing.T) {
_ = append(s, 3) _ = append(s, 3)
c <- true c <- true
}() }()
for _, _ = range s { for _ = range s {
} }
<-c <-c
} }
...@@ -295,7 +295,7 @@ func TestRaceSliceVarRange(t *testing.T) { ...@@ -295,7 +295,7 @@ func TestRaceSliceVarRange(t *testing.T) {
c := make(chan bool, 1) c := make(chan bool, 1)
s := make([]int, 10) s := make([]int, 10)
go func() { go func() {
for _, _ = range s { for _ = range s {
} }
c <- true c <- true
}() }()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment