From a0c7faeb51c0f45048408bfd8f7a673db34f7ece Mon Sep 17 00:00:00 2001 From: FuGangqiang Date: Thu, 9 Nov 2017 12:04:03 +0800 Subject: [PATCH] fix doc --- src/header/mod.rs | 8 ++++---- src/header/value.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/header/mod.rs b/src/header/mod.rs index cb94e10..16e3068 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -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; diff --git a/src/header/value.rs b/src/header/value.rs index 2525f96..ab4ee87 100644 --- a/src/header/value.rs +++ b/src/header/value.rs @@ -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