aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/type/unit.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-08-26 02:34:05 -0400
committerEduardo Julian2021-08-26 02:34:05 -0400
commite814f667aed509a70bd386dcd54628929134def4 (patch)
tree0a948502194c846a66396020420bd99c6c68370a /stdlib/source/documentation/lux/type/unit.lux
parentb216900093c905b3b20dd45c69e577b192e2f7a3 (diff)
"Interface" instead of "interface:", and "Rec" can be used in type definition.
Diffstat (limited to 'stdlib/source/documentation/lux/type/unit.lux')
-rw-r--r--stdlib/source/documentation/lux/type/unit.lux28
1 files changed, 16 insertions, 12 deletions
diff --git a/stdlib/source/documentation/lux/type/unit.lux b/stdlib/source/documentation/lux/type/unit.lux
index b33a797c6..08cd1a6d4 100644
--- a/stdlib/source/documentation/lux/type/unit.lux
+++ b/stdlib/source/documentation/lux/type/unit.lux
@@ -57,7 +57,7 @@
[(`` (documentation: <scale>
(let [numerator (value@ [#/.ratio #ratio.numerator] <scale>)
denominator (value@ [#/.ratio #ratio.denominator] <scale>)]
- (format "'" (~~ (template.text [<type>])) "' scale from " (%.nat numerator) " to " (%.nat denominator) "."))))]
+ (format "The '" (~~ (template.text [<scale>])) "' scale, from " (%.nat numerator) " to " (%.nat denominator) "."))))]
[/.Kilo /.kilo]
[/.Mega /.mega]
@@ -68,14 +68,14 @@
[/.Nano /.nano]
)
-(template [<type>]
- [(`` (documentation: <type>
- (format "'" (~~ (template.text [<type>])) "' unit of meaurement.")))]
+(template [<unit>]
+ [(`` (documentation: <unit>
+ (format "The '" (~~ (template.text [<unit>])) "' unit of meaurement.")))]
- [/.Gram]
- [/.Meter]
- [/.Litre]
- [/.Second]
+ [/.gram]
+ [/.meter]
+ [/.litre]
+ [/.second]
)
(.def: .public documentation
@@ -99,10 +99,14 @@
..milli
..micro
..nano
- ..Gram
- ..Meter
- ..Litre
- ..Second
+ ..gram
+ ..meter
+ ..litre
+ ..second
+ ($.default /.Gram)
+ ($.default /.Meter)
+ ($.default /.Litre)
+ ($.default /.Second)
($.default /.pure)
($.default /.number)
($.default /.equivalence)