aboutsummaryrefslogtreecommitdiff
path: root/src/authority.rs
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-16 15:04:04 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-16 15:04:04 -0700
commitbc57f058e630f9f2e53867b48e0e710c72d7d8ec (patch)
treeac48bef9f4195b520d426b5048f6b7f35caeb157 /src/authority.rs
parentdf19e6b005c6a08e2b068ec0468c50db31387002 (diff)
Version 1.0.2
* Code in doc examples needs to be reachable through a "main" function, otherwise the tests silently fail to detect problems. * The example for `Uri::resolve` was calling `path_to_string` rather than `to_string`.
Diffstat (limited to 'src/authority.rs')
-rw-r--r--src/authority.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/authority.rs b/src/authority.rs
index 18d86fa..bde7a06 100644
--- a/src/authority.rs
+++ b/src/authority.rs
@@ -20,7 +20,7 @@ use super::validate_ipv6_address::validate_ipv6_address;
/// # extern crate rhymuri;
/// use rhymuri::Authority;
///
-/// # fn test() -> Result<(), rhymuri::Error> {
+/// # fn main() -> 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());
@@ -35,7 +35,7 @@ use super::validate_ipv6_address::validate_ipv6_address;
/// # extern crate rhymuri;
/// use rhymuri::Authority;
///
-/// # fn test() -> Result<(), rhymuri::Error> {
+/// # fn main() -> Result<(), rhymuri::Error> {
/// let mut authority = Authority::default();
/// authority.set_userinfo(Some("nobody").map(Into::into));
/// authority.set_host("www.example.com");