Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Oct 21, 2024
1 parent ce1cd56 commit c01afee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ more detailed information.
```clojure
funcool/datoteka
{:git/tag "4.0.0"
:git/sha "6e4b4c2"
:git/sha "ce1cd56"
:git/url "https://github.com/funcool/datoteka.git"}
```

Expand Down
6 changes: 3 additions & 3 deletions src/datoteka/io.clj
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
(string? content)
(let [encoding (or (:encoding opts) "UTF-8")
data (.getBytes ^String content ^String encoding)]
(write data dst opts))
(write dst data opts))

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

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

(defn skip
[input offset]
Expand Down

0 comments on commit c01afee

Please sign in to comment.