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

Unified Diff: lib/core/list.dart

Issue 10960011: Made removeAt errors consistent between dart2js and VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 8 years, 3 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 | « lib/compiler/implementation/lib/interceptors.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/list.dart
diff --git a/lib/core/list.dart b/lib/core/list.dart
index 436d76024615d908f5853e869f6da552b691e48c..ba113ce36f84e2237c5cfdb283dd3d80ffdf38a5 100644
--- a/lib/core/list.dart
+++ b/lib/core/list.dart
@@ -101,11 +101,11 @@ interface List<E> extends Collection<E> default ListImplementation<E> {
* This reduces the length of the list by one and moves all later elements
* down by one position.
* Returns the removed element.
- * Throws a [IllegalArgumentException] if [index] is not an integer, and
- * [IndexOutOfRangeException] if the [index] does not point inside the list.
- *
- * Throws a [UnsupportedOperationException] if the list, or the length of
- * the list, cannot be changed.
+ * Throws an [IllegalArgumentException] if [index] is not an [int].
+ * Throws an [IndexOutOfRangeException] if the [index] does not point inside
+ * the list.
+ * Throws an [UnsupportedOperationException] if the length of the list cannot
+ * be changed.
*/
E removeAt(int index);
@@ -113,7 +113,6 @@ interface List<E> extends Collection<E> default ListImplementation<E> {
* Pops and returns the last element of the list.
* Throws a [UnsupportedOperationException] if the length of the
* list cannot be changed.
- *
*/
E removeLast();
« no previous file with comments | « lib/compiler/implementation/lib/interceptors.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698