From f801ff3fe04d5a6f1ecd59d122d6e3ced4c5f71c Mon Sep 17 00:00:00 2001 From: Illya Gerasymchuk Date: Fri, 22 Mar 2019 17:44:10 +0000 Subject: fix grammar errors --- kotlin.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin.html.markdown b/kotlin.html.markdown index 9bc8b420..6a6c1b66 100644 --- a/kotlin.html.markdown +++ b/kotlin.html.markdown @@ -109,7 +109,7 @@ fun helloWorld(val name : String) { /* When a function consists of a single expression then the curly brackets can - be omitted. The body is specified after a = symbol. + be omitted. The body is specified after the = symbol. */ fun odd(x: Int): Boolean = x % 2 == 1 println(odd(6)) // => false @@ -306,7 +306,7 @@ fun helloWorld(val name : String) { println(result) /* - We can check if an object is a particular type by using the "is" operator. + We can check if an object is of a particular type by using the "is" operator. If an object passes a type check then it can be used as that type without explicitly casting it. */ -- cgit v1.2.3