Skip to content

Commit bf539b4

Browse files
kabagoudacommit-bot@chromium.org
authored andcommitted
Update list.dart
Line 745 . Added the value of words.asMap() as a comment it allows to have an idea of the result of the use of the asMap function. Closes #44378 #44378 GitOrigin-RevId: c197eb7 Change-Id: I97693ffa4a9840245d340cc81e68d0d31eb926f2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/174940 Reviewed-by: Lasse R.H. Nielsen <[email protected]> Commit-Queue: Lasse R.H. Nielsen <[email protected]>
1 parent 56cf168 commit bf539b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/lib/core/list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ abstract class List<E> implements EfficientLengthIterable<E> {
742742
* in numerical order.
743743
*
744744
* List<String> words = ['fee', 'fi', 'fo', 'fum'];
745-
* Map<int, String> map = words.asMap();
745+
* Map<int, String> map = words.asMap(); // {0: fee, 1: fi, 2: fo, 3: fum}
746746
* map[0] + map[1]; // 'feefi';
747747
* map.keys.toList(); // [0, 1, 2, 3]
748748
*/

0 commit comments

Comments
 (0)