From d3757ec581ca3906dfdad130921142b971aa7b9f Mon Sep 17 00:00:00 2001 From: Gareth Flandro <137940955+GarethFlandro@users.noreply.github.com> Date: Mon, 6 Jan 2025 12:07:55 -0500 Subject: [PATCH] Give a better example of val use cases The existing variables and descriptions were things that would be updated as soon as the next customer came, whereas the price would likely remain the same. --- docs/topics/tour/kotlin-tour-hello-world.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/topics/tour/kotlin-tour-hello-world.md b/docs/topics/tour/kotlin-tour-hello-world.md index ebe167e23b9..fb26983b9f4 100644 --- a/docs/topics/tour/kotlin-tour-hello-world.md +++ b/docs/topics/tour/kotlin-tour-hello-world.md @@ -51,8 +51,8 @@ For example: ```kotlin fun main() { //sampleStart - val popcorn = 5 // There are 5 boxes of popcorn - val hotdog = 7 // There are 7 hotdogs + val popcornPrice = 5 // Popcorn costs 5 dollars + val hotdogPrice = 7 // Hotdogs cost 7 dollars var customers = 10 // There are 10 customers in the queue // Some customers leave the queue @@ -133,4 +133,4 @@ fun main() { ## Next step -[Basic types](kotlin-tour-basic-types.md) \ No newline at end of file +[Basic types](kotlin-tour-basic-types.md)