Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give a better example of val use cases #4634

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/topics/tour/kotlin-tour-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -133,4 +133,4 @@ fun main() {

## Next step

[Basic types](kotlin-tour-basic-types.md)
[Basic types](kotlin-tour-basic-types.md)