Przeglądaj źródła

Be more detailed in documentation of set_query (#737)

* Be more detailed in documentation of set_query

* Remove trailing space

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
philippeitis 2 lat temu
rodzic
commit
92f356e449
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      url/src/lib.rs

+ 2 - 1
url/src/lib.rs

@@ -1524,7 +1524,8 @@ impl Url {
         }
     }
 
-    /// Change this URL’s query string.
+    /// Change this URL’s query string. If `query` is `None`, this URL's
+    /// query string will be cleared.
     ///
     /// # Examples
     ///