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:
Michel Alexandre Salim 2015-09-23 00:39:08 +07:00
parent 456f33eb7c
commit 49a294e98d

View File

@ -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]