Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: sdk/lib/core/iterable.dart

Issue 1986243002: Fix Iterable.where documentation by updating its signature. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/iterable.dart
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart
index d6509583d2821aa65671894588b76307d0d0eda2..cf05cdec4a55bdef6ece8554b8dfa90b4ebe6822 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -169,7 +169,8 @@ abstract class Iterable<E> {
* multiple times over the returned [Iterable] will invoke the supplied
* function [test] multiple times on the same element.
*/
- Iterable<E> where(bool f(E element)) => new WhereIterable<E>(this, f);
+ Iterable<E> where(bool test(E element)) =>
+ new WhereIterable<E>(this, test);
Lasse Reichstein Nielsen 2016/05/17 18:28:23 Are you sure it didn't fit one one line?
/**
* Expands each element of this [Iterable] into zero or more elements.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698