aboutsummaryrefslogtreecommitdiff
path: root/src/authority.rs
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-14 22:38:44 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-14 22:38:44 -0700
commit472c84a39a29bb9a2778cac67f5a9be78eca93bc (patch)
tree07526bd1be9922d39d36829dfaeacd9d645d2563 /src/authority.rs
parentb4fb0021700594eafe1adc8055baf40a8ab5174e (diff)
Preparation for publishing on crates.io
* Rename crate to "rhymuri" since "uri" is taken; FeelsBadMan * Bump crate version to 1.0.0. * Add categories, keywords, and repository metadata. * Update README with links to crates.io and documentation. * Add license reference in README.
Diffstat (limited to 'src/authority.rs')
-rw-r--r--src/authority.rs12
1 files changed, 6 insertions, 6 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");