style(headers): use regular doc-comments inside macros
A bug (rust-lang/rust#23812) in rustc prevented the use of normal comments inside macros but this has been fixed.
This commit is contained in:
		@@ -1,36 +1,36 @@
 | 
			
		||||
use header::HttpDate;
 | 
			
		||||
 | 
			
		||||
header! {
 | 
			
		||||
    #[doc="`Last-Modified` header, defined in"]
 | 
			
		||||
    #[doc="[RFC7232](http://tools.ietf.org/html/rfc7232#section-2.2)"]
 | 
			
		||||
    #[doc=""]
 | 
			
		||||
    #[doc="The `Last-Modified` header field in a response provides a timestamp"]
 | 
			
		||||
    #[doc="indicating the date and time at which the origin server believes the"]
 | 
			
		||||
    #[doc="selected representation was last modified, as determined at the"]
 | 
			
		||||
    #[doc="conclusion of handling the request."]
 | 
			
		||||
    #[doc=""]
 | 
			
		||||
    #[doc="# ABNF"]
 | 
			
		||||
    #[doc="```plain"]
 | 
			
		||||
    #[doc="Expires = HTTP-date"]
 | 
			
		||||
    #[doc="```"]
 | 
			
		||||
    #[doc=""]
 | 
			
		||||
    #[doc="# Example values"]
 | 
			
		||||
    #[doc="* `Sat, 29 Oct 1994 19:43:31 GMT`"]
 | 
			
		||||
    #[doc=""]
 | 
			
		||||
    #[doc="# Example"]
 | 
			
		||||
    #[doc="```"]
 | 
			
		||||
    #[doc="# extern crate hyper;"]
 | 
			
		||||
    #[doc="# extern crate time;"]
 | 
			
		||||
    #[doc="# fn main() {"]
 | 
			
		||||
    #[doc="// extern crate time;"]
 | 
			
		||||
    #[doc=""]
 | 
			
		||||
    #[doc="use hyper::header::{Headers, LastModified, HttpDate};"]
 | 
			
		||||
    #[doc="use time::{self, Duration};"]
 | 
			
		||||
    #[doc=""]
 | 
			
		||||
    #[doc="let mut headers = Headers::new();"]
 | 
			
		||||
    #[doc="headers.set(LastModified(HttpDate(time::now() - Duration::days(1))));"]
 | 
			
		||||
    #[doc="# }"]
 | 
			
		||||
    #[doc="```"]
 | 
			
		||||
    /// `Last-Modified` header, defined in
 | 
			
		||||
    /// [RFC7232](http://tools.ietf.org/html/rfc7232#section-2.2)
 | 
			
		||||
    /// 
 | 
			
		||||
    /// The `Last-Modified` header field in a response provides a timestamp
 | 
			
		||||
    /// indicating the date and time at which the origin server believes the
 | 
			
		||||
    /// selected representation was last modified, as determined at the
 | 
			
		||||
    /// conclusion of handling the request.
 | 
			
		||||
    /// 
 | 
			
		||||
    /// # ABNF
 | 
			
		||||
    /// ```plain
 | 
			
		||||
    /// Expires = HTTP-date
 | 
			
		||||
    /// ```
 | 
			
		||||
    /// 
 | 
			
		||||
    /// # Example values
 | 
			
		||||
    /// * `Sat, 29 Oct 1994 19:43:31 GMT`
 | 
			
		||||
    /// 
 | 
			
		||||
    /// # Example
 | 
			
		||||
    /// ```
 | 
			
		||||
    /// # extern crate hyper;
 | 
			
		||||
    /// # extern crate time;
 | 
			
		||||
    /// # fn main() {
 | 
			
		||||
    /// // extern crate time;
 | 
			
		||||
    /// 
 | 
			
		||||
    /// use hyper::header::{Headers, LastModified, HttpDate};
 | 
			
		||||
    /// use time::{self, Duration};
 | 
			
		||||
    /// 
 | 
			
		||||
    /// let mut headers = Headers::new();
 | 
			
		||||
    /// headers.set(LastModified(HttpDate(time::now() - Duration::days(1))));
 | 
			
		||||
    /// # }
 | 
			
		||||
    /// ```
 | 
			
		||||
    (LastModified, "Last-Modified") => [HttpDate]
 | 
			
		||||
 | 
			
		||||
    test_last_modified {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user