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

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

Issue 17020004: State that skip/take does not accept negative arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « sdk/lib/_collection_dev/iterable.dart ('k') | tests/corelib/iterable_skip_test.dart » ('j') | 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 41972b9a255f1339d1f3e510649d943d527c7706..aec73a5d8423bce59ee1093bb9b80890883fca45 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -171,6 +171,8 @@ abstract class Iterable<E> {
*
* The returned [Iterable] may contain fewer than [n] elements, if `this`
* contains fewer than [n] elements.
+ *
+ * It is an error if [n] is negative.
*/
Iterable<E> take(int n);
@@ -191,6 +193,8 @@ abstract class Iterable<E> {
*
* If `this` has fewer than [n] elements, then the resulting [Iterable] will
* be empty.
+ *
+ * It is an error if [n] is negative.
*/
Iterable<E> skip(int n);
« no previous file with comments | « sdk/lib/_collection_dev/iterable.dart ('k') | tests/corelib/iterable_skip_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698