aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux.lux')
-rw-r--r--stdlib/source/lux.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux
index 01401ea29..4f6a134a4 100644
--- a/stdlib/source/lux.lux
+++ b/stdlib/source/lux.lux
@@ -2206,7 +2206,7 @@
(-> Bit Text)
(if x "#1" "#0"))
-(def:''' (digit-to-text digit)
+(def:''' (digit::format digit)
#Nil
(-> Nat Text)
({0 "0"
@@ -2228,7 +2228,7 @@
(if ("lux i64 =" 0 input)
output
(recur (n// 10 input)
- (text@compose (|> input (n/% 10) digit-to-text)
+ (text@compose (|> input (n/% 10) digit::format)
output)))))]
(loop value ""))}
value))
@@ -2253,10 +2253,10 @@
(if ("lux i64 =" +0 input)
(text@compose sign output)
(recur ("lux i64 /" +10 input)
- (text@compose (|> input ("lux i64 %" +10) ("lux coerce" Nat) digit-to-text)
+ (text@compose (|> input ("lux i64 %" +10) ("lux coerce" Nat) digit::format)
output)))))
(|> value ("lux i64 /" +10) int@abs)
- (|> value ("lux i64 %" +10) int@abs ("lux coerce" Nat) digit-to-text)))))
+ (|> value ("lux i64 %" +10) int@abs ("lux coerce" Nat) digit::format)))))
(def:''' (frac@encode x)
#Nil