Skip to content

Commit 153ff7c

Browse files
committed
Somehow cannot be a base did not do what its documentation suggested.
1 parent 03ec409 commit 153ff7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ impl Url {
686686
/// ```
687687
#[inline]
688688
pub fn cannot_be_a_base(&self) -> bool {
689-
!self.slice(self.path_start..).starts_with('/')
689+
!self.slice(self.scheme_end + 1..).starts_with('/')
690690
}
691691

692692
/// Return the username for this URL (typically the empty string)

0 commit comments

Comments
 (0)