From 06c5f9af1d7aa291ae8e7bdd75af57bbe0684193 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 6 Sep 2021 00:37:49 -0400 Subject: Documentation improvements. --- stdlib/source/documentation/lux.lux | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'stdlib/source/documentation/lux.lux') 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 (-> Int Int) (+ ))] + [++ +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: /.`` -- cgit v1.2.3