Skip to content

Commit 5cc2ca1

Browse files
karlklosecommit-bot@chromium.org
authored andcommitted
Fix typo in list.length= method comment
Change-Id: I35457f926446c9b77c34d7b2a967b6d9076ba055 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169841 Auto-Submit: Karl Klose <karlklose@google.com> Commit-Queue: Karl Klose <karlklose@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
1 parent a2ceec3 commit 5cc2ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/lib/core/list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ abstract class List<E> implements EfficientLengthIterable<E> {
337337
* Increasing the length fails if the element type does not allow `null`.
338338
*
339339
* Throws an [UnsupportedError] if the list is fixed-length or
340-
* if attempting tp enlarge the list when `null` is not a valid element.
340+
* if attempting to enlarge the list when `null` is not a valid element.
341341
*/
342342
set length(int newLength);
343343

0 commit comments

Comments
 (0)