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

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

Issue 2905013003: fix doc comments in dart:io and collection types (Closed)
Patch Set: Created 3 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
Index: sdk/lib/core/iterable.dart
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart
index 397d9192d24947ec551e3c9343412ec7db97a500..864dc0f737ebb11bc6bbf81955dbda5f8484bf4b 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -291,9 +291,9 @@ abstract class Iterable<E> {
* Checks every element in iteration order, and returns `false` if
* any of them make [test] return `false`, otherwise returns `true`.
*/
- bool every(bool f(E element)) {
+ bool every(bool test(E element)) {
for (E element in this) {
- if (!f(element)) return false;
+ if (!test(element)) return false;
}
return true;
}
@@ -330,9 +330,9 @@ abstract class Iterable<E> {
* Checks every element in iteration order, and returns `true` if
* any of them make [test] return `true`, otherwise returns false.
*/
- bool any(bool f(E element)) {
+ bool any(bool test(E element)) {
for (E element in this) {
- if (f(element)) return true;
+ if (test(element)) return true;
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698