We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5f1f5b commit 95bef0dCopy full SHA for 95bef0d
src/libcollectionstest/btree/map.rs
@@ -208,8 +208,8 @@ fn test_range_borrowed_key() {
208
map.insert("baboon".to_string(), 2);
209
map.insert("coyote".to_string(), 3);
210
map.insert("dingo".to_string(), 4);
211
- // NOTE: would like to use simply "a".."d" here...
212
- let mut iter = map.range("b".to_string().."d".to_string());
+ // NOTE: would like to use simply "b".."d" here...
+ let mut iter = map.range::<str, _>((Included("b"),Excluded("d")));
213
assert_eq!(iter.next(), Some((&"baboon".to_string(), &2)));
214
assert_eq!(iter.next(), Some((&"coyote".to_string(), &3)));
215
assert_eq!(iter.next(), None);
0 commit comments