Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SpringMT authored Apr 26, 2024
1 parent 8808979 commit af68196
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Zstd.read_skippable_frame(compressed_data_with_skippable_frame)

#### Zstd::StreamWriter

```
```ruby
require 'stringio'
require 'zstd-ruby'

Expand All @@ -152,7 +152,7 @@ compressed_data = io.read

#### Zstd::StreamReader

```
```ruby
require 'stringio'
require 'zstd-ruby' # Add the appropriate require statement if necessary

Expand All @@ -162,7 +162,7 @@ reader = Zstd::StreamReader.new(io)
# Read and output the decompressed data
puts reader.read(10) # 'abc'
puts reader.read(10) # 'def'
puts reader.read(10) # '' (end of data)
puts reader.read(10) # '' (end of data)
```


Expand Down

0 comments on commit af68196

Please sign in to comment.