Skip to content

Commit

Permalink
Fix doc example code for query parameters (seanmonstar#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViddeM authored and Nutomic committed Nov 7, 2024
1 parent bf7f009 commit 5a6d940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async_impl/request.rs
Original file line number Diff line number Diff line change
@@ -333,7 +333,7 @@ impl RequestBuilder {
/// be called multiple times and that existing query parameters are not
/// overwritten if the same key is used. The key will simply show up
/// twice in the query string.
/// Calling `.query([("foo", "a"), ("foo", "b")])` gives `"foo=a&foo=b"`.
/// Calling `.query(&[("foo", "a"), ("foo", "b")])` gives `"foo=a&foo=b"`.
///
/// # Note
/// This method does not support serializing a single key-value

0 comments on commit 5a6d940

Please sign in to comment.