mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 16:00:45 +00:00
fix typo "no key was not found"
Closes https://github.com/dart-lang/sdk/pull/56073 GitOrigin-RevId: 39caf86d2d37b1f15657af68ce39282ef6ae55f7 Change-Id: Ice8b4246915ebd5b1ea6c766723036c5bde2aa7d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/372842 Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
parent
efab897725
commit
0abc42ed0e
|
@ -658,7 +658,7 @@ final class SplayTreeMap<K, V> extends _SplayTree<K, _SplayTreeMapNode<K, V>>
|
|||
|
||||
/// The last key in the map that is strictly smaller than [key].
|
||||
///
|
||||
/// Returns `null` if no key was not found.
|
||||
/// Returns `null` if such a key was not found.
|
||||
K? lastKeyBefore(K key) {
|
||||
if (key == null) throw ArgumentError(key);
|
||||
if (_root == null) return null;
|
||||
|
@ -675,7 +675,7 @@ final class SplayTreeMap<K, V> extends _SplayTree<K, _SplayTreeMapNode<K, V>>
|
|||
}
|
||||
|
||||
/// Get the first key in the map that is strictly larger than [key]. Returns
|
||||
/// `null` if no key was not found.
|
||||
/// `null` if such a key was not found.
|
||||
K? firstKeyAfter(K key) {
|
||||
if (key == null) throw ArgumentError(key);
|
||||
if (_root == null) return null;
|
||||
|
|
Loading…
Reference in a new issue