Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
78cee46f
Commit
78cee46f
authored
Dec 15, 2012
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: gofmt -w -s
R=golang-dev, dsymonds CC=golang-dev
https://golang.org/cl/6935059
parent
0b50a5da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/pkg/exp/locale/collate/colelem.go
src/pkg/exp/locale/collate/colelem.go
+1
-1
src/pkg/runtime/race/testdata/map_test.go
src/pkg/runtime/race/testdata/map_test.go
+2
-2
src/pkg/runtime/race/testdata/slice_test.go
src/pkg/runtime/race/testdata/slice_test.go
+3
-3
No files found.
src/pkg/exp/locale/collate/colelem.go
View file @
78cee46f
...
@@ -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
}
}
...
...
src/pkg/runtime/race/testdata/map_test.go
View file @
78cee46f
...
@@ -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
}
}
...
...
src/pkg/runtime/race/testdata/slice_test.go
View file @
78cee46f
...
@@ -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
}()
}()
...
...
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