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:
Jumpaku 2024-06-25 15:11:39 +00:00 committed by Commit Queue
parent efab897725
commit 0abc42ed0e

View file

@ -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;