Skip to content

Commit 9969338

Browse files
xljxlj
authored andcommitted
fix compile err
1 parent 159babe commit 9969338

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

114-For/for-4.gop

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ for i <= 100 {
1010
println sum
1111

1212
for {
13-
println sum++
13+
if sum > 0 {
14+
break
15+
}
1416
}
1517

0 commit comments

Comments
 (0)