Browse Source

added doc assert_eq to show what parse_with_params does

Just wanted this when i looked at the documentation.
meltinglava 6 năm trước cách đây
mục cha
commit
868aa96170
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      url/src/lib.rs

+ 1 - 0
url/src/lib.rs

@@ -277,6 +277,7 @@ impl Url {
     /// # fn run() -> Result<(), ParseError> {
     /// let url = Url::parse_with_params("https://example.net?dont=clobberme",
     ///                                  &[("lang", "rust"), ("browser", "servo")])?;
+    /// assert_eq!("https://example.net/?dont=clobberme&lang=rust&browser=servo", url.as_str());
     /// # Ok(())
     /// # }
     /// # run().unwrap();