mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
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:
parent
054ae83903
commit
a5194c80c2
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue