Skip to content

Commit a6b5f0c

Browse files
Remove unnecessary conversion of denominator to its absolute value
1 parent 083ef56 commit a6b5f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/practice/rational-numbers/.meta/example.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn absolute_value(r: RationalNumber) -> RationalNumber {
3838

3939
RationalNumber(
4040
numerator: int.absolute_value(numerator),
41-
denominator: int.absolute_value(denominator),
41+
denominator: denominator,
4242
)
4343
}
4444

0 commit comments

Comments
 (0)