Skip to content

Commit 885d684

Browse files
authored
Doctest whitespace
1 parent ee574dc commit 885d684

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,14 +1462,14 @@ impl Url {
14621462
/// use url::Url;
14631463
/// # use std::error::Error;
14641464
///
1465-
/// # fn run( ) -> Result< ( ), Box< Error > > {
1466-
/// let mut url = Url::parse( "https://example.org/" )?;
1465+
/// # fn run() -> Result<(), Box<Error>> {
1466+
/// let mut url = Url::parse("https://example.org/")?;
14671467
///
1468-
/// url.set_port( Some( 443 ) ).map_err( |_| "cannot be base" )?;
1469-
/// assert!( url.port( ).is_none( ) );
1470-
/// # Ok( () )
1468+
/// url.set_port(Some(443)).map_err(|_| "cannot be base")?;
1469+
/// assert!(url.port().is_none());
1470+
/// # Ok(())
14711471
/// # }
1472-
/// # run( ).unwrap( );
1472+
/// # run().unwrap();
14731473
/// ```
14741474
///
14751475
/// Cannot set port for cannot-be-a-base URLs:

0 commit comments

Comments
 (0)