mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 14:32:24 +00:00
Rephrase bool getter doc
We want to avoid the "Returns" phrasing for getters. Change-Id: Ia738c1566f720200a7b65a4ff441e1196129a6f1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210286 Auto-Submit: Nate Bosch <nbosch@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
parent
a3a7e2786c
commit
828d1904e5
1 changed files with 2 additions and 2 deletions
|
@ -412,12 +412,12 @@ abstract class Iterable<E> {
|
|||
return count;
|
||||
}
|
||||
|
||||
/// Returns `true` if there are no elements in this collection.
|
||||
/// Whether this collection has no elements.
|
||||
///
|
||||
/// May be computed by checking if `iterator.moveNext()` returns `false`.
|
||||
bool get isEmpty => !iterator.moveNext();
|
||||
|
||||
/// Returns true if there is at least one element in this collection.
|
||||
/// Whether this collection has at least one element.
|
||||
///
|
||||
/// May be computed by checking if `iterator.moveNext()` returns `true`.
|
||||
bool get isNotEmpty => !isEmpty;
|
||||
|
|
Loading…
Reference in a new issue