]> Cypherpunks repositories - gostls13.git/commit
net/url: fix example of Values.Encode
authorJosé Joaquín Atria <jjatria@gmail.com>
Mon, 24 Nov 2025 19:52:22 +0000 (19:52 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 25 Nov 2025 18:41:33 +0000 (10:41 -0800)
commit657b331ff5da9b02bd98b489ff144a03c6651bae
tree770a6b6caca5f5a6e405c68278af3b3ff6afbda8
parentbd9222b525b44d91941fc4d179b467103817d463
net/url: fix example of Values.Encode

Calling url.Values.Encode generates a query string with the
values sorted by key. However, in the example in the documentation
this behaviour is not reflected. This change corrects this.

Change-Id: Id95a5d79b57dc20c3bff1f0c6975c76dcd8412b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/723960
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
src/net/url/example_test.go