aboutsummaryrefslogtreecommitdiff
path: root/src/authority.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/authority.rs')
-rw-r--r--src/authority.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/authority.rs b/src/authority.rs
index f7505f8..a4a9790 100644
--- a/src/authority.rs
+++ b/src/authority.rs
@@ -22,10 +22,10 @@ use super::{
/// ## Parsing an Authority into its components
///
/// ```rust
-/// # extern crate rhymuri;
-/// use rhymuri::Authority;
+/// # extern crate uris;
+/// use uris::Authority;
///
-/// # fn main() -> Result<(), rhymuri::Error> {
+/// # fn main() -> Result<(), uris::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());
@@ -37,10 +37,10 @@ use super::{
/// ## Generating a URI from its components
///
/// ```rust
-/// # extern crate rhymuri;
-/// use rhymuri::Authority;
+/// # extern crate uris;
+/// use uris::Authority;
///
-/// # fn main() -> Result<(), rhymuri::Error> {
+/// # fn main() -> Result<(), uris::Error> {
/// let mut authority = Authority::default();
/// authority.set_userinfo(Some("nobody").map(Into::into));
/// authority.set_host("www.example.com");
@@ -162,7 +162,7 @@ impl std::fmt::Display for Authority {
if validate_ipv6_address(&host_to_string).is_ok() =>
{
write!(f, "[{}]", host_to_string.to_ascii_lowercase())?;
- }
+ },
_ => {
write!(
f,