summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2022-01-12 23:32:50 +0530
committerArun Isaac2022-01-16 00:52:07 +0530
commitdf75e2650f3c2a273a8b6193f0aca652199916a7 (patch)
tree159d743f4edd712a25ee1ab8435eaaaaab83ca7b
parent9bf112c3da6fe36a068e75169c2ea7b9bc0668b1 (diff)
downloadccwl-df75e2650f3c2a273a8b6193f0aca652199916a7.tar.gz
ccwl-df75e2650f3c2a273a8b6193f0aca652199916a7.tar.lz
ccwl-df75e2650f3c2a273a8b6193f0aca652199916a7.zip
ccwl: Indent lambda** docstring examples correctly.
* ccwl/utils.scm (lambda**): Indent docstring examples correctly.
-rw-r--r--ccwl/utils.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/ccwl/utils.scm b/ccwl/utils.scm
index c714ce4..2e302da 100644
--- a/ccwl/utils.scm
+++ b/ccwl/utils.scm
@@ -1,5 +1,5 @@
 ;;; ccwl --- Concise Common Workflow Language
-;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2021, 2022 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of ccwl.
 ;;;
@@ -130,7 +130,7 @@ are prefixed by #:key. n-ary keyword arguments are prefixed by
 #:key*. For example:
 
 (lambda** (a b #:key foo #:key* bar)
-   (list a b foo bar))
+  (list a b foo bar))
 
 Here, a and b are positional arguments. foo is a unary keyword
 argument. bar is an n-ary keyword argument. The above function could,
@@ -147,15 +147,15 @@ arguments. Note that the default value for unary arguments is #f,
 while that for n-ary arguments is the empty list. For example,
 
 ((lambda** (foo bar #:key aal vale (pal 9) #:key* naal (irandu 7) (sol 3 2 1) uruthi)
-     (list foo bar aal vale pal naal irandu sol uruthi))
-   1 2 #:vale 123 #:naal 321 456)
+   (list foo bar aal vale pal naal irandu sol uruthi))
+ 1 2 #:vale 123 #:naal 321 456)
 => (1 2 #f 123 9 (321 456) (7) (3 2 1) ())
 
 Like lambda*, lambda** supports #:allow-other-keys. For example,
 
 ((lambda** (#:key foo #:allow-other-keys)
-     foo)
-   #:foo 1 #:bar 2)
+   foo)
+ #:foo 1 #:bar 2)
 => 1
 
 However, #:optional and #:rest are not supported."