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

Unified Diff: sdk/lib/async/stream.dart

Issue 15697020: Fix some Iterable comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | sdk/lib/core/iterable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/stream.dart
diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart
index 95835e3fe6316255fb7d3635e47633ca3fc24354..4be59b7326b09d1f0706db8ddf935b85f13c1097 100644
--- a/sdk/lib/async/stream.dart
+++ b/sdk/lib/async/stream.dart
@@ -519,7 +519,7 @@ abstract class Stream<T> {
* when either this stream is done, or when this stream first provides
* a value that [test] doesn't accept.
*/
- Stream<T> takeWhile(bool test(T value)) {
+ Stream<T> takeWhile(bool test(T element)) {
return new _TakeWhileStream(this, test);
}
@@ -538,7 +538,7 @@ abstract class Stream<T> {
* Starting with the first data event where [test] returns true for the
* event data, the returned stream will have the same events as this stream.
*/
- Stream<T> skipWhile(bool test(T value)) {
+ Stream<T> skipWhile(bool test(T element)) {
return new _SkipWhileStream(this, test);
}
@@ -659,7 +659,7 @@ abstract class Stream<T> {
* with no [defaultValue] function provided, the future will receive an
* error.
*/
- Future<T> firstWhere(bool test(T value), {T defaultValue()}) {
+ Future<T> firstWhere(bool test(T element), {T defaultValue()}) {
_FutureImpl<T> future = new _FutureImpl<T>();
StreamSubscription subscription;
subscription = this.listen(
@@ -696,7 +696,7 @@ abstract class Stream<T> {
* That means that the result cannot be provided before this stream
* is done.
*/
- Future<T> lastWhere(bool test(T value), {T defaultValue()}) {
+ Future<T> lastWhere(bool test(T element), {T defaultValue()}) {
_FutureImpl<T> future = new _FutureImpl<T>();
T result = null;
bool foundResult = false;
@@ -738,7 +738,7 @@ abstract class Stream<T> {
* Like [lastMatch], except that it is an error if more than one
* matching element occurs in the stream.
*/
- Future<T> singleWhere(bool test(T value)) {
+ Future<T> singleWhere(bool test(T element)) {
_FutureImpl<T> future = new _FutureImpl<T>();
T result = null;
bool foundResult = false;
« no previous file with comments | « no previous file | sdk/lib/core/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698