From e69cd1ab3a53cd3ae0416a5025d887a1f7b9229c Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 25 May 2017 10:34:35 -0700 Subject: [PATCH] style(header): clean up extra whitespace in ContentLength file --- src/header/common/content_length.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/header/common/content_length.rs b/src/header/common/content_length.rs index 3ff82990..382c7c09 100644 --- a/src/header/common/content_length.rs +++ b/src/header/common/content_length.rs @@ -4,7 +4,7 @@ use header::{Header, Raw, parsing}; /// `Content-Length` header, defined in /// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2) -/// +/// /// When a message does not have a `Transfer-Encoding` header field, a /// Content-Length header field can provide the anticipated size, as a /// decimal number of octets, for a potential payload body. For messages @@ -13,27 +13,25 @@ use header::{Header, Raw, parsing}; /// body (and message) ends. For messages that do not include a payload /// body, the Content-Length indicates the size of the selected /// representation. -/// +/// /// # ABNF /// ```plain /// Content-Length = 1*DIGIT /// ``` -/// +/// /// # Example values /// * `3495` -/// +/// /// # Example /// ``` /// use hyper::header::{Headers, ContentLength}; -/// +/// /// let mut headers = Headers::new(); /// headers.set(ContentLength(1024u64)); /// ``` #[derive(Clone, Copy, Debug, PartialEq)] pub struct ContentLength(pub u64); -//static NAME: &'static str = "Content-Length"; - impl Header for ContentLength { #[inline] fn header_name() -> &'static str {