Update README.md

This commit is contained in:
Erik Svedäng 2016-01-11 17:07:42 +01:00
parent d7c2a58ef0
commit d709b38c7f

View File

@ -38,7 +38,7 @@ The most important thing in Carp is to work with arrays of data. Here's how that
```clojure
(defn move-enemies (enemies)
(map (fn (enemy) (let [moved (move enemy)]
(if (< (.x enemy) 0.0f) (restart enemy) enemy)))
(if (< (.x moved) 0.0f) (restart moved) moved)))
enemies))
```