From 111c7f9b6d365e7f5918989d5b249ad50404f302 Mon Sep 17 00:00:00 2001 From: Kazik Pogoda Date: Wed, 11 Dec 2024 14:32:59 +0100 Subject: [PATCH] Conventions fixed --- src/commonMain/kotlin/Money.kt | 2 +- src/nonJvmMain/kotlin/NonJvmMoney.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commonMain/kotlin/Money.kt b/src/commonMain/kotlin/Money.kt index b1de47d..96c5302 100644 --- a/src/commonMain/kotlin/Money.kt +++ b/src/commonMain/kotlin/Money.kt @@ -58,7 +58,7 @@ public interface Money { public operator fun compareTo(money: Money): Int /** - * A ratio to multiply Money. I can be used for representing + * A ratio to multiply Money. It can be used for representing * small ratios, like price per LLM token. */ @Description("Represents a ratio used to multiply Money") diff --git a/src/nonJvmMain/kotlin/NonJvmMoney.kt b/src/nonJvmMain/kotlin/NonJvmMoney.kt index 743e5b8..025b6c5 100644 --- a/src/nonJvmMain/kotlin/NonJvmMoney.kt +++ b/src/nonJvmMain/kotlin/NonJvmMoney.kt @@ -29,11 +29,11 @@ public class NonJvmMoney(private val value: BigDecimal) : Money { ) override fun times(amount: Money): Money = NonJvmMoney( - (value * (amount as NonJvmMoney).value) + value * (amount as NonJvmMoney).value ) override fun times(ratio: Money.Ratio): Money = NonJvmMoney( - (value * (ratio as NonJvmRatio).value) + value * (ratio as NonJvmRatio).value ) override fun compareTo(