diff options
author | Russ Cox <rsc@golang.org> | 2009-10-08 15:14:54 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-08 15:14:54 -0700 |
commit | 79244ca7360f32db37710ab74c72214146397edf (patch) | |
tree | 0f7c5551b95f4e5dd567a4ac3233afeb0da61e99 /src/pkg/datafmt/parser.go | |
parent | 71b9ef8c235f052495a1fb29bd3945f7094998a9 (diff) | |
download | golang-79244ca7360f32db37710ab74c72214146397edf.tar.gz |
more lgtm files from gofmt
R=gri
OCL=35485
CL=35488
Diffstat (limited to 'src/pkg/datafmt/parser.go')
-rw-r--r-- | src/pkg/datafmt/parser.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/datafmt/parser.go b/src/pkg/datafmt/parser.go index d6382de40..9a90c22f4 100644 --- a/src/pkg/datafmt/parser.go +++ b/src/pkg/datafmt/parser.go @@ -55,7 +55,7 @@ func (p *parser) errorExpected(pos token.Position, msg string) { // make the error message more specific msg += ", found '" + p.tok.String() + "'"; if p.tok.IsLiteral() { - msg += " " + string(p.lit); + msg += " "+string(p.lit); } } p.Error(pos, msg); @@ -347,7 +347,7 @@ func remap(p *parser, name string) string { packageName, suffix := name[0:i], name[i:len(name)]; // lookup package if importPath, found := p.packs[packageName]; found { - name = importPath+suffix; + name = importPath + suffix; } else { var invalidPos token.Position; p.Error(invalidPos, "package not declared: " + packageName); |