mirror of
https://github.com/edg-l/edgarluque.com.git
synced 2024-11-10 01:58:22 +00:00
fix
This commit is contained in:
parent
bbce92cd6e
commit
c5a9a8ad45
|
@ -56,7 +56,7 @@ let buffer = Cursor::new(bytes_compressed);
|
||||||
```
|
```
|
||||||
|
|
||||||
Good, now we can pass this buffer to the zstd [Decoder](https://docs.rs/zstd/0.9.0+zstd.1.5.0/zstd/stream/read/struct.Decoder.html), which takes anything that implements [Read](https://doc.rust-lang.org/std/io/trait.Read.html),
|
Good, now we can pass this buffer to the zstd [Decoder](https://docs.rs/zstd/0.9.0+zstd.1.5.0/zstd/stream/read/struct.Decoder.html), which takes anything that implements [Read](https://doc.rust-lang.org/std/io/trait.Read.html),
|
||||||
it also wraps it around a [BufRead](https://doc.rust-lang.org/nightly/std/io/trait.BufRead.html) for buffered reading.
|
it also wraps it around a [BufReader](https://doc.rust-lang.org/nightly/std/io/struct.BufReader.html) for buffered reading.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
// The type of decoder is Decoder<BufReader<Cursor<Vec<u8>>>>
|
// The type of decoder is Decoder<BufReader<Cursor<Vec<u8>>>>
|
||||||
|
|
Loading…
Reference in a new issue