mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-24 00:00:14 +02:00
Fix typos in src/bytes.rs (#106)
This commit is contained in:
committed by
Carl Lerche
parent
e158160418
commit
0b4185c716
+2
-2
@@ -87,13 +87,13 @@ use std::sync::atomic::Ordering::{Relaxed, Acquire, Release, AcqRel};
|
|||||||
/// underlying memory slice and may not be mutated, `BytesMut` handles are
|
/// underlying memory slice and may not be mutated, `BytesMut` handles are
|
||||||
/// guaranteed to be the only handle able to view that slice of memory. As such,
|
/// guaranteed to be the only handle able to view that slice of memory. As such,
|
||||||
/// `BytesMut` handles are able to mutate the underlying memory. Note that
|
/// `BytesMut` handles are able to mutate the underlying memory. Note that
|
||||||
/// holding a unique view to a region of memory does not mean that there are not
|
/// holding a unique view to a region of memory does not mean that there are no
|
||||||
/// other `Bytes` and `BytesMut` handles with disjoint views of the underlying
|
/// other `Bytes` and `BytesMut` handles with disjoint views of the underlying
|
||||||
/// memory.
|
/// memory.
|
||||||
///
|
///
|
||||||
/// # Inline bytes.
|
/// # Inline bytes.
|
||||||
///
|
///
|
||||||
/// As an opitmization, when the slice referenced by a `Bytes` or `BytesMut`
|
/// As an optimization, when the slice referenced by a `Bytes` or `BytesMut`
|
||||||
/// handle is small enough [1], `Bytes` will avoid the allocation by inlining
|
/// handle is small enough [1], `Bytes` will avoid the allocation by inlining
|
||||||
/// the slice directly in the handle. In this case, a clone is no longer
|
/// the slice directly in the handle. In this case, a clone is no longer
|
||||||
/// "shallow" and the data will be copied.
|
/// "shallow" and the data will be copied.
|
||||||
|
|||||||
Reference in New Issue
Block a user