Skip to content

Commit

Permalink
Update task.md (#176)
Browse files Browse the repository at this point in the history
language checked
  • Loading branch information
stephen-hero authored Dec 15, 2023
1 parent c3e897b commit c3730dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TheFirstDateWithProgramming/readUserInputTheory/task.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
We have previously talked about the _built-in_ functions in Kotlin.
In addition to the already familiar functions for output to the console,
Kotlin has the [`readlnOrNull`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/readln-or-null.html) function, which reads the values entered by the user and stores them in a variable:
Kotlin also has the [`readlnOrNull`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/readln-or-null.html) function, which reads values entered by the user and stores them in a variable:

```kotlin
val myValue = readlnOrNull()
Expand All @@ -25,4 +25,4 @@ val myValue: String? = readlnOrNull()
// The myValue variable stores the user's input
```

It is connected to the null safety in Kotlin, we will consider it later, but if you are interested in this topic, you can read more in the [documentation](https://kotlinlang.org/docs/null-safety.html).
This relates to null safety in Kotlin, which we will consider later. If you are interested in this topic, you can read more in the [documentation](https://kotlinlang.org/docs/null-safety.html).

0 comments on commit c3730dd

Please sign in to comment.