1
0
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:
Mikio Hara 2012-12-15 14:19:51 +09:00
parent 0b50a5dad7
commit 78cee46f3a
3 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}()