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
b47bbecf
Commit
b47bbecf
authored
Sep 14, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: fix a couple of govet-discovered errors.
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5021042
parent
a775fbf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/pkg/exp/regexp/exec_test.go
src/pkg/exp/regexp/exec_test.go
+1
-1
src/pkg/image/png/reader_test.go
src/pkg/image/png/reader_test.go
+1
-1
No files found.
src/pkg/exp/regexp/exec_test.go
View file @
b47bbecf
...
...
@@ -558,7 +558,7 @@ Reading:
}
have
:=
re
.
FindStringSubmatchIndex
(
text
)
if
(
len
(
have
)
>
0
)
!=
match
{
t
.
Errorf
(
"%s:%d: %#q.Match(%#q) = %v, but %#q.FindSubmatchIndex(%#q) = %v"
,
file
,
lineno
,
pattern
,
text
,
match
,
text
,
have
)
t
.
Errorf
(
"%s:%d: %#q.Match(%#q) = %v, but %#q.FindSubmatchIndex(%#q) = %v"
,
file
,
lineno
,
pattern
,
text
,
match
,
pattern
,
text
,
have
)
continue
Testing
}
if
len
(
have
)
>
len
(
pos
)
{
...
...
src/pkg/image/png/reader_test.go
View file @
b47bbecf
...
...
@@ -262,7 +262,7 @@ func TestReaderError(t *testing.T) {
t
.
Errorf
(
"decoding %s: %s, want %s"
,
tt
.
file
,
err
,
tt
.
err
)
}
if
img
!=
nil
{
t
.
Errorf
(
"decoding %s: have image + error"
)
t
.
Errorf
(
"decoding %s: have image + error"
,
tt
.
file
)
}
}
}
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