Skip to content

Commit 868aa96

Browse files
meltinglavadjc
authored andcommitted
added doc assert_eq to show what parse_with_params does
Just wanted this when i looked at the documentation.
1 parent 94e2a87 commit 868aa96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

url/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ impl Url {
277277
/// # fn run() -> Result<(), ParseError> {
278278
/// let url = Url::parse_with_params("https://example.net?dont=clobberme",
279279
/// &[("lang", "rust"), ("browser", "servo")])?;
280+
/// assert_eq!("https://example.net/?dont=clobberme&lang=rust&browser=servo", url.as_str());
280281
/// # Ok(())
281282
/// # }
282283
/// # run().unwrap();

0 commit comments

Comments
 (0)