diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/authority.rs | 12 | ||||
-rw-r--r-- | src/lib.rs | 8 | ||||
-rw-r--r-- | src/uri.rs | 22 |
3 files changed, 21 insertions, 21 deletions
diff --git a/src/authority.rs b/src/authority.rs index d475f85..955816c 100644 --- a/src/authority.rs +++ b/src/authority.rs @@ -17,10 +17,10 @@ use super::validate_ipv6_address::validate_ipv6_address; /// ## Parsing an Authority into its components /// /// ```rust -/// # extern crate uri; -/// use uri::Authority; +/// # extern crate rhymuri; +/// use rhymuri::Authority; /// -/// # fn test() -> Result<(), uri::Error> { +/// # fn test() -> Result<(), rhymuri::Error> { /// let authority = Authority::parse("nobody@www.example.com:8080")?; /// assert_eq!(Some("nobody".as_bytes()), authority.userinfo()); /// assert_eq!("www.example.com".as_bytes(), authority.host()); @@ -32,10 +32,10 @@ use super::validate_ipv6_address::validate_ipv6_address; /// ## Generating a URI from its components /// /// ```rust -/// # extern crate uri; -/// use uri::Authority; +/// # extern crate rhymuri; +/// use rhymuri::Authority; /// -/// # fn test() -> Result<(), uri::Error> { +/// # fn test() -> Result<(), rhymuri::Error> { /// let mut authority = Authority::default(); /// authority.set_userinfo(Some("nobody").map(Into::into)); /// authority.set_host("www.example.com"); @@ -22,8 +22,8 @@ //! ## Parsing a URI into its components //! //! ```rust -//! # extern crate uri; -//! use uri::Uri; +//! # extern crate rhymuri; +//! use rhymuri::Uri; //! //! let uri = Uri::parse("http://www.example.com/foo?bar#baz").unwrap(); //! let authority = uri.authority().unwrap(); @@ -37,8 +37,8 @@ //! ## Generating a URI from its components //! //! ```rust -//! # extern crate uri; -//! use uri::{Authority, Uri}; +//! # extern crate rhymuri; +//! use rhymuri::{Authority, Uri}; //! //! let mut uri = Uri::default(); //! assert!(uri.set_scheme(String::from("http")).is_ok()); @@ -36,10 +36,10 @@ use super::character_classes::{ /// ## Parsing a URI into its components /// /// ```rust -/// # extern crate uri; -/// use uri::Uri; +/// # extern crate rhymuri; +/// use rhymuri::Uri; /// -/// # fn test() -> Result<(), uri::Error> { +/// # fn test() -> Result<(), rhymuri::Error> { /// let uri = Uri::parse("http://www.example.com/foo?bar#baz")?; /// let authority = uri.authority().unwrap(); /// assert_eq!("www.example.com".as_bytes(), authority.host()); @@ -54,8 +54,8 @@ use super::character_classes::{ /// ## Generating a URI from its components /// /// ```rust -/// # extern crate uri; -/// use uri::{Authority, Uri}; +/// # extern crate rhymuri; +/// use rhymuri::{Authority, Uri}; /// /// let mut uri = Uri::default(); /// assert!(uri.set_scheme(String::from("http")).is_ok()); @@ -229,10 +229,10 @@ impl Uri { /// # Examples /// /// ```rust - /// # extern crate uri; - /// use uri::Uri; + /// # extern crate rhymuri; + /// use rhymuri::Uri; /// - /// # fn test() -> Result<(), uri::Error> { + /// # fn test() -> Result<(), rhymuri::Error> { /// let mut uri = Uri::parse("/a/b/c/./../../g")?; /// uri.normalize(); /// assert_eq!("/a/g", uri.path_to_string()?); @@ -493,10 +493,10 @@ impl Uri { /// # Examples /// /// ```rust - /// # extern crate uri; - /// use uri::Uri; + /// # extern crate rhymuri; + /// use rhymuri::Uri; /// - /// # fn test() -> Result<(), uri::Error> { + /// # fn test() -> Result<(), rhymuri::Error> { /// let base = Uri::parse("http://a/b/c/d;p?q")?; /// let relative_reference = Uri::parse("g;x?y#s")?; /// let resolved = base.resolve(&relative_reference); |