Skip to content

Commit

Permalink
make value accessible to users
Browse files Browse the repository at this point in the history
  • Loading branch information
sswadkar committed Jan 7, 2023
1 parent 8af1391 commit 2971d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/team4099/lib/units/Value.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package org.team4099.lib.units
import kotlin.math.absoluteValue

@JvmInline
value class Value<T : UnitKey>(internal val value: Double) : Comparable<Value<T>> {
value class Value<T : UnitKey>(val value: Double) : Comparable<Value<T>> {
val absoluteValue: Value<T>
get() = Value(value.absoluteValue)

Expand Down

0 comments on commit 2971d34

Please sign in to comment.