Skip to content

Commit 67eac6f

Browse files
chore(examples): clean up
1 parent ec88c38 commit 67eac6f

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

examples/01_introduction/02_Null Safety.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ In an effort to rid the world of `NullPointerException`, variable types in Kotli
55
<div class="language-kotlin" theme="idea">
66

77
```kotlin
8-
//sampleStart
98
fun main() {
109
var neverNull: String = "This can't be null" // 1
1110

@@ -16,7 +15,6 @@ fun main() {
1615
var inferredNonNull = "The compiler assumes non-null" // 4
1716

1817
}
19-
//sampleEnd
2018
```
2119

2220
</div>

examples/02_control_structures/02_Loops.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ fun main() {
2424
<div class="language-kotlin" theme="idea">
2525

2626
```kotlin
27-
//sampleStart
2827
fun eatACake() = println("Eat a Cake")
2928
fun bakeACake() = println("Bake a Cake")
3029

@@ -43,7 +42,6 @@ fun main() {
4342
} while (cakesBaked < cakesEaten)
4443

4544
}
46-
//sampleEnd
4745
```
4846

4947
</div>

examples/03_declarations/04_Inheritance.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ fun main() {
3737
<div class="language-kotlin" theme="idea">
3838

3939
```kotlin
40-
//sampleStart
4140
open class Tiger(val origin: String) {
4241
fun sayHello() {
4342
println("A tiger from $origin says: grrhhh!")
@@ -50,7 +49,6 @@ fun main() {
5049
val tiger: Tiger = SiberianTiger()
5150
tiger.sayHello()
5251
}
53-
//sampleEnd
5452
```
5553

5654
</div>

examples/04_functional/01_Higher-Order Functions.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ that itself takes two parameters of type integer and returns an integer.
3535
<div class="language-kotlin" theme="idea">
3636

3737
```kotlin
38-
//sampleStart
3938
fun operation(): (Int) -> Int { // 1
4039
return ::square
4140
}
@@ -47,7 +46,6 @@ fun main() {
4746
val func = operation() // 3
4847
println(func(2)) // 4
4948
}
50-
//sampleEnd
5149
```
5250

5351
</div>

examples/05_special_classes/04_Object.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Object like that, is often used like anonymous class in Java.
4848
<div class="language-kotlin" theme="idea">
4949

5050
```kotlin
51-
//sampleStart
5251
fun rentPrice(standardDays: Int, festivityDays: Int, specialDays: Int): Unit { //1
5352

5453
val dayRates = object { //2
@@ -67,7 +66,6 @@ fun rentPrice(standardDays: Int, festivityDays: Int, specialDays: Int): Unit {
6766
fun main(){
6867
rentPrice(10, 2, 1) //5
6968
}
70-
//sampleEnd
7169
```
7270

7371
</div>

0 commit comments

Comments
 (0)