Skip to content

Commit

Permalink
Conventions fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Dec 11, 2024
1 parent 2ae7ae0 commit 111c7f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/Money.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/nonJvmMain/kotlin/NonJvmMoney.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 111c7f9

Please sign in to comment.