mirror of
https://github.com/golang/go
synced 2024-11-18 13:04:46 -07:00
src: gofmt -w -s
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6935059
This commit is contained in:
parent
0b50a5dad7
commit
78cee46f3a
@ -128,7 +128,7 @@ func (ce colElem) tertiary() uint8 {
|
||||
} else if ce&ceTypeMask == ceType1 {
|
||||
return defaultTertiary
|
||||
}
|
||||
// ce is a quaternary value.
|
||||
// ce is a quaternary value.
|
||||
return 0
|
||||
}
|
||||
|
||||
|
4
src/pkg/runtime/race/testdata/map_test.go
vendored
4
src/pkg/runtime/race/testdata/map_test.go
vendored
@ -57,7 +57,7 @@ func TestRaceMapRange2(t *testing.T) {
|
||||
m := make(map[int]int)
|
||||
ch := make(chan bool, 1)
|
||||
go func() {
|
||||
for _, _ = range m {
|
||||
for _ = range m {
|
||||
}
|
||||
ch <- true
|
||||
}()
|
||||
@ -77,7 +77,7 @@ func TestNoRaceMapRangeRange(t *testing.T) {
|
||||
}
|
||||
ch <- true
|
||||
}()
|
||||
for _, _ = range m {
|
||||
for _ = range m {
|
||||
}
|
||||
<-ch
|
||||
}
|
||||
|
6
src/pkg/runtime/race/testdata/slice_test.go
vendored
6
src/pkg/runtime/race/testdata/slice_test.go
vendored
@ -252,7 +252,7 @@ func TestRaceSliceRangeAppend(t *testing.T) {
|
||||
s = append(s, 3)
|
||||
c <- true
|
||||
}()
|
||||
for _, _ = range s {
|
||||
for _ = range s {
|
||||
}
|
||||
<-c
|
||||
}
|
||||
@ -264,7 +264,7 @@ func TestNoRaceSliceRangeAppend(t *testing.T) {
|
||||
_ = append(s, 3)
|
||||
c <- true
|
||||
}()
|
||||
for _, _ = range s {
|
||||
for _ = range s {
|
||||
}
|
||||
<-c
|
||||
}
|
||||
@ -295,7 +295,7 @@ func TestRaceSliceVarRange(t *testing.T) {
|
||||
c := make(chan bool, 1)
|
||||
s := make([]int, 10)
|
||||
go func() {
|
||||
for _, _ = range s {
|
||||
for _ = range s {
|
||||
}
|
||||
c <- true
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user