mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 17:59:39 +00:00
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:
parent
858badcf50
commit
6dfcd40684
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue