Skip to content

Commit 594d4f9

Browse files
committed
Merge pull request bbatsov#98 from llasram/trivial-fixes
Trivial whitespace-related fixed.
2 parents 2ff2ec4 + f4e3ec7 commit 594d4f9

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -197,23 +197,23 @@ when there are no arguments on the same line as the function name.
197197
Indent each arity form of a function definition vertically aligned with its
198198
parameters.<sup>[[link](#multiple-arity-indentation)]</sup>
199199

200-
```Clojure
201-
;; good
202-
(defn foo
203-
"I have two arities."
204-
([x]
205-
(foo x 1))
206-
([x y]
207-
(+ x y)))
208-
209-
;; bad - extra indentation
210-
(defn foo
211-
"I have two arities."
212-
([x]
213-
(foo x 1))
214-
([x y]
215-
(+ x y)))
216-
```
200+
```Clojure
201+
;; good
202+
(defn foo
203+
"I have two arities."
204+
([x]
205+
(foo x 1))
206+
([x y]
207+
(+ x y)))
208+
209+
;; bad - extra indentation
210+
(defn foo
211+
"I have two arities."
212+
([x]
213+
(foo x 1))
214+
([x y]
215+
(+ x y)))
216+
```
217217

218218
* <a name="align-docstring-lines"></a>
219219
Indent each line of multi-line docstrings.
@@ -827,21 +827,21 @@ hints for the pairwise grouping with comments or empty lines.
827827

828828
```Clojure
829829
;; good
830-
(cond
831-
(test1) (action1)
832-
(test2) (action2)
833-
:else (default-action))
834-
835-
;; ok-ish
836-
(cond
837-
;; test case 1
838-
(test1)
839-
(long-function-name-which-requires-a-new-line
830+
(cond
831+
(test1) (action1)
832+
(test2) (action2)
833+
:else (default-action))
834+
835+
;; ok-ish
836+
(cond
837+
;; test case 1
838+
(test1)
839+
(long-function-name-which-requires-a-new-line
840840
(complicated-sub-form
841841
(-> 'which-spans multiple-lines)))
842842

843-
(test2)
844-
(another-very-long-function-name
843+
(test2)
844+
(another-very-long-function-name
845845
(yet-another-sub-form
846846
(-> 'which-spans multiple-lines)))
847847

0 commit comments

Comments
 (0)