Skip to content

Commit 0720df2

Browse files
authored
Fix ddict example in README
1 parent 0fe86fd commit 0720df2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ Zstd.decompress(compressed_using_dict, dict: File.read('dictionary_file'))
131131
If you use the same dictionary repeatedly, you can speed up the setup by creating DDict in advance:
132132

133133
```ruby
134-
cdict = Zstd::CDict.new(File.read('dictionary_file'))
135-
compressed_using_dict = Zstd.compress(compressed_using_dict, ddict)
134+
ddict = Zstd::Ddict.new(File.read('dictionary_file'))
135+
data = Zstd.compress(compressed_using_dict, ddict)
136136
```
137137

138138
#### Streaming Decompression

0 commit comments

Comments
 (0)