diff --git a/README.md b/README.md index 8752f1ba..3fef5ea4 100644 --- a/README.md +++ b/README.md @@ -725,14 +725,13 @@ with `lein repl`: (let [s (java.net.Socket. "localhost" port) out (.getOutputStream s) in (java.io.PushbackInputStream. (.getInputStream s)) - _ (b/write-bencode out {"op" "eval" "code" (pr-str expr)}) - value (get (b/read-bencode in) "value")] - (read-string value))) + _ (b/write-bencode out {"op" "eval" "code" expr}) + bytes (get (b/read-bencode in) "value")] + (String. bytes))) -(nrepl-eval 65274 '(+ 1 2 3)) ;;=> 6 +(nrepl-eval 52054 "(+ 1 2 3)") ;;=> "6" ``` - ## Differences with Clojure Babashka is implemented using the [Small Clojure