Skip to content

Commit e45a095

Browse files
committed
Shorter example in the Readme
1 parent ee50826 commit e45a095

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,15 @@ So, for instance, if I specify the `defrecord` spec as `(2 nil nil (1))`, this i
123123
For something more complicated: `letfn` is `(1 ((:defn)) nil)`. This means
124124

125125
- `letfn` has one special argument (the bindings list).
126-
- The first arg has an indent spec of `((:defn))`, which means all forms _inside_ the first arg have an indent spec of `(1)`.
126+
- The first arg has an indent spec of `((:defn))`, which means all forms _inside_ the first arg have an indent spec of `(:defn)`.
127127
- The second argument, and all other arguments, are regular forms.
128128

129-
```
129+
```clj
130130
(letfn [(twice [x]
131131
(* x 2))
132132
(six-times [y]
133133
(* (twice y) 3))]
134-
(println "Twice 15 =" (twice 15))
135-
(println "Six times 15 ="
136-
(six-times 15)))
134+
(six-times 15))
137135
```
138136

139137
A few more examples:

0 commit comments

Comments
 (0)