Skip to content

Commit 53688bf

Browse files
committed
Adapt bookbuilder for James' changes
Kotlin 1.5.30 working, ready for edits.
1 parent 2e24b94 commit 53688bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Examples/BreakAndContinue/ForControl.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import atomictest.eq
44

55
fun main() {
66
val nums = mutableListOf(0)
7-
for (i in 4 until 100 step 4) { // [1]
8-
if (i == 8) continue // [2]
9-
if (i == 40) break // [3]
7+
for (i in 4 until 100 step 4) { // [1]
8+
if (i == 8) continue // [2]
9+
if (i == 40) break // [3]
1010
nums.add(i)
11-
} // [4]
11+
} // [4]
1212
nums eq "[0, 4, 12, 16, 20, 24, 28, 32, 36]"
1313
}

gradle/tasks.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3653,4 +3653,4 @@ task run (dependsOn: [
36533653
doLast {
36543654
println '*** run complete ***'
36553655
}
3656-
}
3656+
}

0 commit comments

Comments
 (0)