corrected home page samples
This commit is contained in:
1 parent
69156893d4
commit
2e7c28f735
2 files changed
+262
-2
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user