Skip to content

Commit 2dcf907

Browse files
author
Bozhidar Batsov
committed
Update the indentation of the threading macro examples
1 parent d11f342 commit 2dcf907

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -678,18 +678,18 @@ pairwise constructs as found in e.g. `let` and `cond`.
678678
```Clojure
679679
;; good
680680
(-> [1 2 3]
681-
reverse
682-
(conj 4)
683-
prn)
681+
reverse
682+
(conj 4)
683+
prn)
684684

685685
;; not as good
686686
(prn (conj (reverse [1 2 3])
687687
4))
688688

689689
;; good
690690
(->> (range 1 10)
691-
(filter even?)
692-
(map (partial * 2)))
691+
(filter even?)
692+
(map (partial * 2)))
693693

694694
;; not as good
695695
(map (partial * 2)
@@ -793,14 +793,12 @@ hints for the pairwise grouping with comments or empty lines.
793793
(test1)
794794
(long-function-name-which-requires-a-new-line
795795
(complicated-sub-form
796-
(-> 'which-spans
797-
multiple-lines)))
796+
(-> 'which-spans multiple-lines)))
798797

799798
(test2)
800799
(another-very-long-function-name
801800
(yet-another-sub-form
802-
(-> 'which-spans
803-
multiple-lines)))
801+
(-> 'which-spans multiple-lines)))
804802

805803
:else
806804
(the-fall-through-default-case

0 commit comments

Comments
 (0)