corrected home page samples

This commit is contained in:
sergeych committed 2026-02-17 12:47:55 +03:00
1 parent 69156893d4
commit 2e7c28f735
2 files changed
+262 -2

No files matched your search

+2 -2
View File
@@ -106,7 +106,7 @@ fun HomePage() {
}
class App() : Logger, Auth {
fun run() {
override fun run() {
log("Starting...")
login("admin")
}
@@ -137,7 +137,7 @@ fun HomePage() {
"""
// Easy operator overloading
class Vector(val x: Real, val y: Real) {
override fun plus(other: Vector): Vector = Vector(x + other.x, y + other.y)
fun plus(other: Vector): Vector = Vector(x + other.x, y + other.y)
override fun toString(): String = "Vector(%g, %g)"(x, y)
}