summaryrefslogtreecommitdiffhomepage
path: root/kotlin.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'kotlin.html.markdown')
-rw-r--r--kotlin.html.markdown9
1 files changed, 5 insertions, 4 deletions
diff --git a/kotlin.html.markdown b/kotlin.html.markdown
index ae0123a7..7b1475a8 100644
--- a/kotlin.html.markdown
+++ b/kotlin.html.markdown
@@ -9,7 +9,7 @@ Kotlin is a Statically typed programming language for the JVM, Android and the
browser. It is 100% interoperable with Java.
[Read more here.](https://kotlinlang.org/)
-```kotlin
+```java
// Single-line comments start with //
/*
Multi-line comments look like this.
@@ -133,7 +133,7 @@ fun helloWorld(val name : String) {
The name of the single parameter will be "it".
*/
val notPositive = not {it > 0}
- for (i in (0..4)) {
+ for (i in 0..4) {
println("${notOdd(i)} ${notEven(i)} ${notZero(i)} ${notPositive(i)}")
}
@@ -317,5 +317,6 @@ object ObjectExample {
### Further Reading
-A web-based mini-IDE for Kotlin:
-[http://try.kotlinlang.org/)
+* [Kotlin tutorials](https://kotlinlang.org/docs/tutorials/)
+* [Try Kotlin in your browser](http://try.kotlinlang.org/)
+* [A list of Kotlin resources](http://kotlin.link/)