File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ other mechanisms can be used to secure the application, if desired
29
29
### With the io::Read abstraction
30
30
31
31
``` rust
32
- let mut input = brotli :: Decompressor :: new (& mut io :: stdin (), 4096 /* buffer size */ );
32
+ let mut input = brotli_decompressor :: Decompressor :: new (& mut io :: stdin (), 4096 /* buffer size */ );
33
33
```
34
34
then you can simply read input as you would any other io::Read class
35
35
36
36
### With the Stream Copy abstraction
37
37
38
38
``` rust
39
- match brotli :: BrotliDecompress (& mut io :: stdin (), & mut io :: stdout (), 65536 /* buffer size */ ) {
39
+ match brotli_decompressor :: BrotliDecompress (& mut io :: stdin (), & mut io :: stdout (), 65536 /* buffer size */ ) {
40
40
Ok (_ ) => {},
41
41
Err (e ) => panic! (" Error {:?}" , e ),
42
42
}
You can’t perform that action at this time.
0 commit comments