docs(lib): fix rustdoc warnings

This commit is contained in:
Guillaume Gomez
2017-11-10 19:22:33 +01:00
committed by Sean McArthur
parent fe38aa4bc1
commit e330d30964
55 changed files with 237 additions and 72 deletions

View File

@@ -12,7 +12,8 @@ use header::parsing::{from_one_raw_str};
/// representation data.
///
/// # ABNF
/// ```plain
///
/// ```text
/// Range = byte-ranges-specifier / other-ranges-specifier
/// other-ranges-specifier = other-range-unit "=" other-range-set
/// other-range-set = 1*VCHAR
@@ -27,6 +28,7 @@ use header::parsing::{from_one_raw_str};
/// ```
///
/// # Example values
///
/// * `bytes=1000-`
/// * `bytes=-2000`
/// * `bytes=0-1,30-40`
@@ -35,6 +37,7 @@ use header::parsing::{from_one_raw_str};
/// * `custom_unit=xxx-yyy`
///
/// # Examples
///
/// ```
/// use hyper::header::{Headers, Range, ByteRangeSpec};
///
@@ -46,6 +49,7 @@ use header::parsing::{from_one_raw_str};
/// headers.clear();
/// headers.set(Range::Unregistered("letters".to_owned(), "a-f".to_owned()));
/// ```
///
/// ```
/// use hyper::header::{Headers, Range};
///