This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
forge
mirror of
https://github.com/brettlangdon/forge.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
12
Wiki
Activity
Browse Source
use ++ over += 1
pull/16/head
Brett Langdon
11 years ago
parent
9b0c55c462
commit
671c5447d3
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
scanner.go
+ 2
- 2
scanner.go
View File
@ -57,11 +57,11 @@ func NewScanner(reader io.Reader) *Scanner {
func
(
scanner
*
Scanner
)
readRune
(
)
{
if
scanner
.
newline
{
scanner
.
curLine
+=
1
scanner
.
curLine
++
scanner
.
curCol
=
0
scanner
.
newline
=
false
}
else
{
scanner
.
curCol
+=
1
scanner
.
curCol
++
}
nextCh
,
_
,
err
:=
scanner
.
reader
.
ReadRune
(
)
Write
Preview
Loading…
Cancel
Save