From faea83b5627414c3c8562f5de9e1df863ed4f52f Mon Sep 17 00:00:00 2001 From: Vidar Magnusson Date: Fri, 25 Feb 2022 22:07:42 +0100 Subject: [PATCH] Fix doc example code for query parameters (#1480) --- src/async_impl/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/async_impl/request.rs b/src/async_impl/request.rs index c6d93f5..f11e756 100644 --- a/src/async_impl/request.rs +++ b/src/async_impl/request.rs @@ -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