From 31d998078d72dd6f6b59819596c239b938f8d005 Mon Sep 17 00:00:00 2001 From: Michael Zapata Date: Fri, 10 Feb 2017 15:47:52 +0100 Subject: [PATCH] docs(uri): fix rendering errors Add a code block around the URI explanation to make it legible and add a missing backquote --- src/uri.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/uri.rs b/src/uri.rs index aa3eb914..ef979773 100644 --- a/src/uri.rs +++ b/src/uri.rs @@ -25,11 +25,12 @@ use Error; /// > ``` /// /// # Uri explanations -/// +/// ```notrust /// abc://username:password@example.com:123/path/data?key=value&key2=value2#fragid1 /// |-| |-------------------------------||--------| |-------------------| |-----| /// | | | | | /// scheme authority path query fragment +/// ``` #[derive(Clone)] pub struct Uri { source: InternalUri, @@ -152,7 +153,7 @@ impl Uri { } } - /// Get the port of this `Uri. + /// Get the port of this `Uri`. pub fn port(&self) -> Option { match self.authority() { Some(auth) => auth.find(":").and_then(|i| u16::from_str(&auth[i+1..]).ok()),