File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1462,14 +1462,14 @@ impl Url {
1462
1462
/// use url::Url;
1463
1463
/// # use std::error::Error;
1464
1464
///
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/")?;
1467
1467
///
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(() )
1471
1471
/// # }
1472
- /// # run( ).unwrap( );
1472
+ /// # run().unwrap();
1473
1473
/// ```
1474
1474
///
1475
1475
/// Cannot set port for cannot-be-a-base URLs:
You can’t perform that action at this time.
0 commit comments