Skip to content

Commit c01afee

Browse files
committed
Update readme
1 parent ce1cd56 commit c01afee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ more detailed information.
1818
```clojure
1919
funcool/datoteka
2020
{:git/tag "4.0.0"
21-
:git/sha "6e4b4c2"
21+
:git/sha "ce1cd56"
2222
:git/url "https://github.com/funcool/datoteka.git"}
2323
```
2424

Diff for: src/datoteka/io.clj

+3-3
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
(string? content)
235235
(let [encoding (or (:encoding opts) "UTF-8")
236236
data (.getBytes ^String content ^String encoding)]
237-
(write data dst opts))
237+
(write dst data opts))
238238

239239
:else
240240
(with-open [^InputStream input (jio/make-input-stream content opts)]
@@ -244,9 +244,9 @@
244244
(flush dst))))
245245

246246
(defn write-to-file
247-
[src dst & {:keys [close] :or {close true} :as opts}]
247+
[dst content & {:as opts}]
248248
(with-open [^OutputStream dst (jio/make-output-stream dst opts)]
249-
(write src dst opts)))
249+
(write dst content opts)))
250250

251251
(defn skip
252252
[input offset]

0 commit comments

Comments
 (0)