Skip to content

Commit

Permalink
Fix typo in expandIndexed (dart-archive/collection#160)
Browse files Browse the repository at this point in the history
* Fix typo in expandIndex
  • Loading branch information
natebosch authored Oct 27, 2020
1 parent 0b5492d commit a865019
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pkgs/collection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.15.0-nullsafety.5

* Fix typo in extension method `expandIndexed`.

## 1.15.0-nullsafety.4

* Allow prerelease versions of the `2.12.x` sdk.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/collection/lib/src/list_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ extension ListExtensions<E> on List<E> {
///
/// Like [Iterable.expand] except that the callback function is supplied with
/// both the index and the element.
Iterable<R> expendIndexed<R>(
Iterable<R> expandIndexed<R>(
Iterable<R> Function(int index, E element) expand) sync* {
for (var index = 0; index < length; index++) {
yield* expand(index, this[index]);
Expand Down
2 changes: 1 addition & 1 deletion pkgs/collection/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: collection
version: 1.15.0-nullsafety.4
version: 1.15.0-nullsafety.5

description: Collections and utilities functions and classes related to collections.
homepage: https://www.github.com/dart-lang/collection
Expand Down

0 comments on commit a865019

Please sign in to comment.