Skip to content

Commit 32fcd62

Browse files
committed
chore: update tour statement about variables
1 parent 476a35e commit 32fcd62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/tour/kotlin-tour-hello-world.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ fun main() {
7171

7272
As `customers` is a mutable variable, its value can be reassigned after declaration.
7373

74-
> We recommend that you declare all variables as read-only (`val`) by default. Declare mutable variables (`var`) only if
75-
> necessary.
74+
> We recommend declaring all variables as read-only (`val`) by default. Only use mutable variables (`var`) if you really
75+
> need to. That way, you're less likely to accidentally change something that wasn't meant to change.
7676
>
7777
{style="note"}
7878

0 commit comments

Comments
 (0)