Skip to content

Commit 23c012c

Browse files
committed
Fix missing semicolon bug
1 parent c70a6be commit 23c012c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

arm.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ func main() {
9999
for {
100100
line, err := reader.ReadString(';')
101101
if err == io.EOF {
102+
if len(line) > 1 {
103+
fmt.Println("Missing semicolon near :", line)
104+
return
105+
}
102106
break
103107
} else if err != nil {
104108
fmt.Println("Error while reading file : ", err)

images/arm.png

-127 KB
Binary file not shown.

0 commit comments

Comments
 (0)