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 {
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:
You can’t perform that action at this time.
0 commit comments