Fix cargo doc error on nightly caused by broken link to footnote (#218)

This commit is contained in:
Roman
2018-07-12 20:15:53 -07:00
committed by Carl Lerche
parent 886dda0962
commit 042aa9023b
+5 -4
View File
@@ -95,11 +95,12 @@ use std::iter::{FromIterator, Iterator};
/// # Inline bytes /// # Inline bytes
/// ///
/// As an optimization, 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], `with_capacity` will avoid the allocation by
/// the slice directly in the handle. In this case, a clone is no longer /// inlining the slice directly in the handle. In this case, a clone is no
/// "shallow" and the data will be copied. /// longer "shallow" and the data will be copied. Converting from a `Vec` will
/// never use inlining.
/// ///
/// [1] Small enough: 31 bytes on 64 bit systems, 15 on 32 bit systems. /// [^1]: Small enough: 31 bytes on 64 bit systems, 15 on 32 bit systems.
/// ///
pub struct Bytes { pub struct Bytes {
inner: Inner, inner: Inner,