Skip to content

Commit 5270692

Browse files
sebaeksarahhaggarty
authored andcommitted
fix(docs): replace incorrect 'email' with 'myEmail' in code explanation
1 parent 138fd58 commit 5270692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/tour/kotlin-tour-intermediate-open-special-classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ In the example:
382382
* `Email` is an inline value class that has one property in the class header: `address`.
383383
* The `sendEmail()` function accepts objects with type `Email` and prints a string to the standard output.
384384
* The `main()` function:
385-
* Creates an instance of the `Email` class called `email`.
386-
* Calls the `sendEmail()` function on the `email` object.
385+
* Creates an instance of the `Email` class called `myEmail`.
386+
* Calls the `sendEmail()` function on the `myEmail` object.
387387

388388
By using an inline value class, you make the class inlined and can use it directly in your code without creating an object.
389389
This can significantly reduce memory footprint and improve your code's runtime performance.

0 commit comments

Comments
 (0)