From a5194c80c2db7f3696d81b2a56a02295e607d2cd Mon Sep 17 00:00:00 2001 From: suragch Date: Thu, 26 Aug 2021 09:48:31 +0000 Subject: [PATCH] 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 Commit-Queue: Slava Egorov --- sdk/lib/core/list.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart index 585845a68cb..8ac4701bf1e 100644 --- a/sdk/lib/core/list.dart +++ b/sdk/lib/core/list.dart @@ -137,7 +137,7 @@ abstract class List implements EfficientLengthIterable { /// ```dart /// List dynList = ...some JSON value...; /// List> 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;