summaryrefslogtreecommitdiffhomepage
path: root/kotlin.html.markdown
diff options
context:
space:
mode:
authorIllya Gerasymchuk <illya@iluxonchik.me>2019-03-22 17:44:10 +0000
committerIllya Gerasymchuk <illya@iluxonchik.me>2019-03-22 17:44:10 +0000
commitf801ff3fe04d5a6f1ecd59d122d6e3ced4c5f71c (patch)
tree5486e443801135e206d51ea00483fcf67b14af1a /kotlin.html.markdown
parente56c62e0d30be203ca0a7a28d92a5a6f721c3589 (diff)
fix grammar errors
Diffstat (limited to 'kotlin.html.markdown')
-rw-r--r--kotlin.html.markdown4
1 files 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.
*/