Skip to content

Commit 293c7da

Browse files
committed
Added comments.
1 parent 6bb9535 commit 293c7da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

subprojects/kotlin-for-java-devs/src/main/kotlin/org/sdkotlin/intro/kotlin/_05_0_variables_and_types/VariablesAndTypesInKotlin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package org.sdkotlin.intro.kotlin._05_0_variables_and_types
33
// var's are mutable, val's are read only
44

55
// Pascal notation is used: name first, then, optionally or as needed, the type
6-
// after a colon (Same as Scala, Swift, Go, Rust, etc.)
6+
// after a colon (Same as Pascal, Scala, Swift, Go, Rust, etc.)
77

88
// Variables aren't defaulted, and must be initialized
99

subprojects/kotlin-for-java-devs/src/main/kotlin/org/sdkotlin/intro/kotlin/_07_equality/EqualityInKotlin.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ fun main() {
88
// Equivalent to "=="
99
println("foo".equals("foo"))
1010

11+
// TODO: Research and explain why this prints "true"...
1112
println("fo" + "o" === "foo")
13+
1214
println("foo" == "foo")
1315
}

0 commit comments

Comments
 (0)