Update style-guide.rst
Re-indent `fib` examples to match that in original blog post - "Indentation shall be two spaces, except where matching the indentation of the previous line"
This commit is contained in:
parent
456f33eb7c
commit
49a294e98d
@ -61,8 +61,8 @@ Layout & Indentation
|
||||
;; Good (and preferred)
|
||||
(defn fib [n]
|
||||
(if (<= n 2)
|
||||
n
|
||||
(+ (fib (- n 1)) (fib (- n 2)))))
|
||||
n
|
||||
(+ (fib (- n 1)) (fib (- n 2)))))
|
||||
|
||||
;; Still okay
|
||||
(defn fib [n]
|
||||
@ -89,8 +89,8 @@ Layout & Indentation
|
||||
;; Good (and preferred)
|
||||
(defn fib [n]
|
||||
(if (<= n 2)
|
||||
n
|
||||
(+ (fib (- n 1)) (fib (- n 2)))))
|
||||
n
|
||||
(+ (fib (- n 1)) (fib (- n 2)))))
|
||||
|
||||
;; Hysterically ridiculous
|
||||
(defn fib [n]
|
||||
|
Loading…
Reference in New Issue
Block a user