Correcting misnamed variable in doc comments

Unless I'm missing something, the map that is being referenced here is `x` from the function argument. It looks like calling it `map` was just a typo. Alternatively rename `x` to `map`.

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

GitOrigin-RevId: 940442bfaa1517b33f811488773618e6f2e387d8
Change-Id: I0d24e28edef7f6e941d3247f7d647b22670a35b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211360
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
This commit is contained in:
suragch 2021-08-26 09:48:31 +00:00 committed by commit-bot@chromium.org
parent 054ae83903
commit a5194c80c2

View file

@ -137,7 +137,7 @@ abstract class List<E> implements EfficientLengthIterable<E> {
/// ```dart
/// List<dynamic> dynList = ...some JSON value...;
/// List<Map<String, dynamic>> fooList =
/// List.from(dynList.where((x) => x is Map && map["kind"] == "foo"));
/// List.from(dynList.where((x) => x is Map && x["kind"] == "foo"));
/// ```
///
/// This constructor creates a growable list when [growable] is true;