aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-09-06 00:37:49 -0400
committerEduardo Julian2021-09-06 00:37:49 -0400
commit06c5f9af1d7aa291ae8e7bdd75af57bbe0684193 (patch)
tree44fa917bf4b5299ec53a368448255eeccbe78be7 /stdlib/source/documentation/lux.lux
parent132ffdae1add622c8a3c6065d7730a8fe8ea5e78 (diff)
Documentation improvements.
Diffstat (limited to 'stdlib/source/documentation/lux.lux')
-rw-r--r--stdlib/source/documentation/lux.lux16
1 files changed, 10 insertions, 6 deletions
diff --git a/stdlib/source/documentation/lux.lux b/stdlib/source/documentation/lux.lux
index 184049d89..94ccb3b38 100644
--- a/stdlib/source/documentation/lux.lux
+++ b/stdlib/source/documentation/lux.lux
@@ -290,8 +290,10 @@
[(def: .public <name>
(-> Int Int)
(+ <diff>))]
+
[++ +1]
- [-- -1])])
+ [-- -1]
+ )])
(documentation: /.not
"Bit negation."
@@ -599,7 +601,7 @@
["M" monad "*"]]
[data
maybe
- ["." name ("#/." codec)]]
+ ["." name ("#\." codec)]]
[macro
code]]
[//
@@ -767,9 +769,9 @@
(documentation: /.name_of
"Given an identifier or a tag, gives back a 2 tuple with the module and name parts, both as Text."
- [(name_of #.doc)
+ [(name_of #..doc)
"=>"
- ["library/lux" "doc"]])
+ ["documentation/lux" "doc"]])
(documentation: /.:parameter
(format "WARNING: Please stay away from this macro; it's very likely to be removed in a future version of Lux."
@@ -856,9 +858,11 @@
(documentation: /.for
(format "Selects the appropriate code for a given target-platform when compiling Lux to it."
\n "Look-up the available targets in library/lux/target.")
- [(def: js "JavaScript")
+ [(def: js
+ "JavaScript")
+
(for {"JVM" (do jvm stuff)
- ..js (do js stuff)}
+ js (do js stuff)}
(do default stuff))])
(documentation: /.``