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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user