From f5a3fbe9a38468cad2a041dd97a566f98d098bcc Mon Sep 17 00:00:00 2001 From: sergeych Date: Sun, 4 Jan 2026 22:50:49 +0100 Subject: [PATCH] docs refined --- docs/OOP.md | 4 ++-- lynglib/src/commonTest/kotlin/OOTest.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/OOP.md b/docs/OOP.md index f15d14f..8a8ef12 100644 --- a/docs/OOP.md +++ b/docs/OOP.md @@ -365,8 +365,8 @@ Example: ```lyng // Interface with state (id) and abstract requirements interface Character(val id) { - abstract var health - abstract var mana + var health + var mana fun isAlive() = health > 0 fun status() = name + " (#" + id + "): " + health + " HP, " + mana + " MP" diff --git a/lynglib/src/commonTest/kotlin/OOTest.kt b/lynglib/src/commonTest/kotlin/OOTest.kt index 516b371..bea93fe 100644 --- a/lynglib/src/commonTest/kotlin/OOTest.kt +++ b/lynglib/src/commonTest/kotlin/OOTest.kt @@ -698,8 +698,8 @@ class OOTest { """ // Interface with state (id) and abstract requirements interface Character(val id) { - abstract var health - abstract var mana + var health + var mana fun isAlive() = health > 0 fun status() = name + " (#" + id + "): " + health + " HP, " + mana + " MP" // name is also abstractly required by the status method,