Update kotlin.html.markdown

This commit is contained in:
Tentacles 2021-02-04 18:25:10 +00:00 committed by GitHub
parent 5db57517d6
commit 2ff50ccd2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)