Index: sdk/lib/core/list.dart |
diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart |
index b01209680f3171e4aada57ff4e78239768f02aa0..2c1d7422060f7f8c37ffb18683353d922956d049 100644 |
--- a/sdk/lib/core/list.dart |
+++ b/sdk/lib/core/list.dart |
@@ -241,15 +241,18 @@ abstract class List<E> implements Collection<E> { |
Iterable<E> getRange(int start, int end); |
/** |
- * Copies [length] elements of [from], starting |
- * at [startFrom], into the list, starting at [start]. |
- * If [length] is 0, this method does not do anything. |
- * Throws an [ArgumentError] if [length] is negative. |
- * Throws an [RangeError] if [start] or |
- * [:start + length - 1:] are out of range for [:this:], or if |
- * [startFrom] or [:startFrom + length - 1:] are out of range for [from]. |
+ * Copies the elements of [from], starting |
+ * at [startFrom], into the range [start] - [end] of `this`. |
+ * |
+ * If [start] equals [end], this method does not do anything. |
+ * |
+ * It is an error if [start]..[end] is not a valid range pointing into the |
+ * `this`. |
+ * |
+ * It is an error if [startFrom] does not point into [from], or if [from] |
+ * does not have enough elements. |
*/ |
- void setRange(int start, int length, List<E> from, [int startFrom]); |
+ void setRange(int start, int end, List<E> from, [int startFrom]); |
Sean Eagan
2013/04/11 14:22:07
I think there is a lot to be learned from C#'s set
Lasse Reichstein Nielsen
2013/04/11 14:33:51
I generally agree with Sean.
If the is not the eff
|
/** |
* Removes [length] elements from the list, beginning at [start]. |