checkpoint

This commit is contained in:
John Smith
2023-05-04 21:26:14 -04:00
parent 514bc34e11
commit 61415597db
3 changed files with 74 additions and 21 deletions

View File

@@ -141,9 +141,9 @@ where
}
false
}
pub fn contains_key(&self, key: &K) -> bool {
pub fn contains_value(&self, value: &K) -> bool {
for tk in &self.items {
if tk.value == *key {
if tk.value == *value {
return true;
}
}