Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
eeade745
Commit
eeade745
authored
Mar 04, 2013
by
David Symonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vet: clean up taglit error print when typechecking fails.
R=golang-dev, r CC=golang-dev
https://golang.org/cl/7416050
parent
6b34eba0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
taglit.go
src/cmd/vet/taglit.go
+5
-1
No files found.
src/cmd/vet/taglit.go
View file @
eeade745
...
...
@@ -72,7 +72,11 @@ func (f *File) checkUntaggedLiteral(c *ast.CompositeLit) {
return
}
f
.
Warnf
(
c
.
Pos
(),
"%s composite literal uses untagged fields"
,
typ
)
pre
:=
""
if
typ
!=
nil
{
pre
=
typ
.
String
()
+
" "
}
f
.
Warn
(
c
.
Pos
(),
pre
+
"composite literal uses untagged fields"
)
}
// pkgPath returns the import path "image/png" for the package name "png".
...
...
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