@@ -137,7 +137,7 @@ impl<'a> Host<&'a str> {
137137impl Host < String > {
138138 /// Parse a host: either an IPv6 address in [] square brackets, or a domain.
139139 ///
140- /// https://url.spec.whatwg.org/#host-parsing
140+ /// < https://url.spec.whatwg.org/#host-parsing>
141141 pub fn parse ( input : & str ) -> Result < Self , ParseError > {
142142 if input. starts_with ( '[' ) {
143143 if !input. ends_with ( ']' ) {
@@ -309,7 +309,7 @@ fn longest_zero_sequence(pieces: &[u16; 8]) -> (isize, isize) {
309309 }
310310}
311311
312- /// https://url.spec.whatwg.org/#ipv4-number-parser
312+ /// < https://url.spec.whatwg.org/#ipv4-number-parser>
313313fn parse_ipv4number ( mut input : & str ) -> Result < u32 , ( ) > {
314314 let mut r = 10 ;
315315 if input. starts_with ( "0x" ) || input. starts_with ( "0X" ) {
@@ -331,7 +331,7 @@ fn parse_ipv4number(mut input: &str) -> Result<u32, ()> {
331331 }
332332}
333333
334- /// https://url.spec.whatwg.org/#concept-ipv4-parser
334+ /// < https://url.spec.whatwg.org/#concept-ipv4-parser>
335335fn parse_ipv4addr ( input : & str ) -> ParseResult < Option < Ipv4Addr > > {
336336 if input. is_empty ( ) {
337337 return Ok ( None )
@@ -368,7 +368,7 @@ fn parse_ipv4addr(input: &str) -> ParseResult<Option<Ipv4Addr>> {
368368 Ok ( Some ( Ipv4Addr :: from ( ipv4) ) )
369369}
370370
371- /// https://url.spec.whatwg.org/#concept-ipv6-parser
371+ /// < https://url.spec.whatwg.org/#concept-ipv6-parser>
372372fn parse_ipv6addr ( input : & str ) -> ParseResult < Ipv6Addr > {
373373 let input = input. as_bytes ( ) ;
374374 let len = input. len ( ) ;
0 commit comments