1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-27 00:26:15 +02:00

Merge pull request #4104 from tentacleuno/patch-1

[kotlin/en] Typo in comment
This commit is contained in:
Andre Polykanine
2021-02-06 11:40:56 +01:00
committed by GitHub

View File

@@ -426,7 +426,7 @@ data class Counter(var value: Int) {
operator fun invoke() = println("The value of the counter is $value")
}
/* You can also overload operators through an extension methods */
/* You can also overload operators through extension methods */
// overload -Counter
operator fun Counter.unaryMinus() = Counter(-this.value)