Merge pull request #138 from FuGangqiang/master

fix doc
This commit is contained in:
Sean McArthur
2017-11-09 09:54:35 -08:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
//! HTTP header types
//!
//! The module provides [`HeaderName`], [`HeaderMap`], and a number of types
//! used for interacting with [`HeaderMap`]. These types allow representing both
//! used for interacting with `HeaderMap`. These types allow representing both
//! HTTP/1 and HTTP/2 headers.
//!
//! # `HeaderName`
@@ -64,10 +64,10 @@
//! `HeaderMap` can store a maximum of 32,768 headers (header name / value
//! pairs). Attempting to insert more will result in a panic.
//!
//! [`HeaderName`]: #
//! [`HeaderMap`]: #
//! [`HeaderName`]: struct.HeaderName.html
//! [`HeaderMap`]: struct.HeaderMap.html
//! [multimap]: https://en.wikipedia.org/wiki/Multimap
//! [`HashMap`]: #
//! [`HashMap`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html
//! [Robin Hood hashing]: https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing
mod map;
+1 -1
View File
@@ -43,7 +43,7 @@ pub struct ToStrError {
}
impl HeaderValue {
/// Convert a static string to a `HeaderValue`
/// Convert a static string to a `HeaderValue`.
///
/// This function will not perform any copying, however the string is
/// checked to ensure that no invalid characters are present. Only visible