summaryrefslogtreecommitdiffhomepage
path: root/clojure.html.markdown
diff options
context:
space:
mode:
authorSoumya D. Sanyal <soumyadsanyal@users.noreply.github.com>2016-10-23 08:19:13 -0400
committerven <vendethiel@hotmail.fr>2016-10-23 14:19:13 +0200
commitc7f2b23f2fe033ad004c4c6913ba9c37335bd6af (patch)
treee5cca9676a553f41cdc68158f179f58bbbef82bf /clojure.html.markdown
parentc76be299aa8aff26128735b169d6a80dc9ffda84 (diff)
typo fix in clojure.html.markdown nth input expression from 4 to 2 resolves: IndexOutOfBoundsException clojure.lang.RT.nthFrom (RT.java:885) (#2493)
Diffstat (limited to 'clojure.html.markdown')
-rw-r--r--clojure.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/clojure.html.markdown b/clojure.html.markdown
index bf9258f7..bfe8d79e 100644
--- a/clojure.html.markdown
+++ b/clojure.html.markdown
@@ -297,7 +297,7 @@ keymap ; => {:a 1, :b 2, :c 3}
(as-> [1 2 3] input
(map inc input);=> You can use last transform's output at the last position
- (nth input 4) ;=> and at the second position, in the same expression
+ (nth input 2) ;=> and at the second position, in the same expression
(conj [4 5 6] input [8 9 10])) ;=> or in the middle !