Skip to content

Commit

Permalink
Another tiny README tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
julik committed Apr 21, 2024
1 parent c519417 commit 383589f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ output direct to STDOUT (so that you can run `$ ruby archive.rb > file.zip` in y

```ruby
ZipKit::Streamer.open($stdout) do |zip|
zip.write_file('mov.mp4.txt') do |sink|
zip.write_file('mov.mp4') do |sink| # Will use "stored" mode
File.open('mov.mp4', 'rb'){|source| IO.copy_stream(source, sink) }
end
zip.write_file('long-novel.txt') do |sink|
zip.write_file('long-novel.txt') do |sink| # Will use "deflated" mode
File.open('novel.txt', 'rb'){|source| IO.copy_stream(source, sink) }
end
end
Expand Down

0 comments on commit 383589f

Please sign in to comment.