mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-25 00:00:22 +02:00
Minor doc fixes (#124)
This commit is contained in:
committed by
Carl Lerche
parent
7110d57b2f
commit
edf1af958a
+3
-3
@@ -197,14 +197,14 @@ pub struct BytesMut {
|
|||||||
// itself for storing the buffer, reserving 1 byte for meta data. This means
|
// itself for storing the buffer, reserving 1 byte for meta data. This means
|
||||||
// that, on 64 bit systems, 31 byte buffers require no allocation at all.
|
// that, on 64 bit systems, 31 byte buffers require no allocation at all.
|
||||||
//
|
//
|
||||||
// The byte used for metadata stores a 1 bit flag used to indicate that the
|
// The byte used for metadata stores a 2 bits flag used to indicate that the
|
||||||
// buffer is stored inline as well as 7 bits for tracking the buffer length (the
|
// buffer is stored inline as well as 6 bits for tracking the buffer length (the
|
||||||
// return value of `Bytes::len`).
|
// return value of `Bytes::len`).
|
||||||
//
|
//
|
||||||
// ## Static buffers
|
// ## Static buffers
|
||||||
//
|
//
|
||||||
// `Bytes` can also represent a static buffer, which is created with
|
// `Bytes` can also represent a static buffer, which is created with
|
||||||
// `Bytes::from_static`. No copying or allocations are required for trackign
|
// `Bytes::from_static`. No copying or allocations are required for tracking
|
||||||
// static buffers. The pointer to the `&'static [u8]`, the length, and a flag
|
// static buffers. The pointer to the `&'static [u8]`, the length, and a flag
|
||||||
// tracking that the `Bytes` instance represents a static buffer is stored in
|
// tracking that the `Bytes` instance represents a static buffer is stored in
|
||||||
// the `Bytes` struct.
|
// the `Bytes` struct.
|
||||||
|
|||||||
Reference in New Issue
Block a user