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
459837c8
Commit
459837c8
authored
Apr 25, 2012
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: fix errors found by go vet
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/6125044
parent
dde8358a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/pkg/exp/norm/maketables.go
src/pkg/exp/norm/maketables.go
+2
-2
src/pkg/text/template/parse/lex.go
src/pkg/text/template/parse/lex.go
+1
-1
No files found.
src/pkg/exp/norm/maketables.go
View file @
459837c8
...
...
@@ -607,7 +607,7 @@ func printCharInfoTables() int {
tccc
:=
ccc
(
d
[
len
(
d
)
-
1
])
cc
:=
ccc
(
r
)
if
cc
!=
0
&&
lccc
==
0
&&
tccc
==
0
{
logger
.
Fatalf
(
"%U: trailing and leading ccc are 0 for non-zero ccc %d"
,
cc
)
logger
.
Fatalf
(
"%U: trailing and leading ccc are 0 for non-zero ccc %d"
,
r
,
cc
)
}
if
tccc
<
lccc
&&
lccc
!=
0
{
const
msg
=
"%U: lccc (%d) must be <= tcc (%d)"
...
...
@@ -623,7 +623,7 @@ func printCharInfoTables() int {
}
if
cc
!=
lccc
{
if
cc
!=
0
{
logger
.
Fatalf
(
"%U: for lccc != ccc, expected ccc to be 0; was %d"
,
cc
)
logger
.
Fatalf
(
"%U: for lccc != ccc, expected ccc to be 0; was %d"
,
r
,
cc
)
}
index
=
3
}
...
...
src/pkg/text/template/parse/lex.go
View file @
459837c8
...
...
@@ -348,7 +348,7 @@ Loop:
l
.
backup
()
word
:=
l
.
input
[
l
.
start
:
l
.
pos
]
if
!
l
.
atTerminator
()
{
return
l
.
errorf
(
"bad character %
+
U"
,
r
)
return
l
.
errorf
(
"bad character %
#
U"
,
r
)
}
switch
{
case
key
[
word
]
>
itemKeyword
:
...
...
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