Fix wrong example for queryParametersAll

Closes https://github.com/dart-lang/sdk/pull/53083

GitOrigin-RevId: 49d4b6666e901ecf5e5569532d9b8d19f057f2d4
Change-Id: Ie246ac593cae8638f2d4f5cc6950e426e4b74237
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/317301
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
This commit is contained in:
Amir Panahandeh 2023-08-01 08:27:58 +00:00 committed by Commit Queue
parent 858badcf50
commit 6dfcd40684

View file

@ -567,8 +567,8 @@ abstract interface class Uri {
/// Example:
/// ```dart import:convert
/// final uri =
/// Uri.parse('https://example.com/api/fetch?limit=10,20,30&max=100');
/// print(jsonEncode(uri.queryParameters)); // {"limit":"10,20,30","max":"100"}
/// Uri.parse('https://example.com/api/fetch?limit=10&limit=20&limit=30&max=100');
/// print(jsonEncode(uri.queryParametersAll)); // {"limit":["10","20","30"],"max":["100"]}
/// ```
///
/// The map and the lists it contains are unmodifiable.