summaryrefslogtreecommitdiffstats
path: root/vendor/toml_edit/src/table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/toml_edit/src/table.rs')
-rw-r--r--vendor/toml_edit/src/table.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/toml_edit/src/table.rs b/vendor/toml_edit/src/table.rs
index f177028fa..2f61abf73 100644
--- a/vendor/toml_edit/src/table.rs
+++ b/vendor/toml_edit/src/table.rs
@@ -265,7 +265,7 @@ impl Table {
self.items.iter().filter(|i| !(i.1).value.is_none()).count()
}
- /// Returns true iff the table is empty.
+ /// Returns true if the table is empty.
pub fn is_empty(&self) -> bool {
self.len() == 0
}
@@ -340,7 +340,7 @@ impl Table {
})
}
- /// Returns true iff the table contains an item with the given key.
+ /// Returns true if the table contains an item with the given key.
pub fn contains_key(&self, key: &str) -> bool {
if let Some(kv) = self.items.get(key) {
!kv.value.is_none()
@@ -349,7 +349,7 @@ impl Table {
}
}
- /// Returns true iff the table contains a table with the given key.
+ /// Returns true if the table contains a table with the given key.
pub fn contains_table(&self, key: &str) -> bool {
if let Some(kv) = self.items.get(key) {
kv.value.is_table()
@@ -358,7 +358,7 @@ impl Table {
}
}
- /// Returns true iff the table contains a value with the given key.
+ /// Returns true if the table contains a value with the given key.
pub fn contains_value(&self, key: &str) -> bool {
if let Some(kv) = self.items.get(key) {
kv.value.is_value()
@@ -367,7 +367,7 @@ impl Table {
}
}
- /// Returns true iff the table contains an array of tables with the given key.
+ /// Returns true if the table contains an array of tables with the given key.
pub fn contains_array_of_tables(&self, key: &str) -> bool {
if let Some(kv) = self.items.get(key) {
kv.value.is_array_of_tables()
@@ -502,7 +502,7 @@ pub trait TableLike: crate::private::Sealed {
fn len(&self) -> usize {
self.iter().filter(|&(_, v)| !v.is_none()).count()
}
- /// Returns true iff the table is empty.
+ /// Returns true if the table is empty.
fn is_empty(&self) -> bool {
self.len() == 0
}
@@ -520,7 +520,7 @@ pub trait TableLike: crate::private::Sealed {
fn get_key_value<'a>(&'a self, key: &str) -> Option<(&'a Key, &'a Item)>;
/// Return mutable references to the key-value pair stored for key, if it is present, else None.
fn get_key_value_mut<'a>(&'a mut self, key: &str) -> Option<(KeyMut<'a>, &'a mut Item)>;
- /// Returns true iff the table contains an item with the given key.
+ /// Returns true if the table contains an item with the given key.
fn contains_key(&self, key: &str) -> bool;
/// Inserts a key-value pair into the map.
fn insert(&mut self, key: &str, value: Item) -> Option<Item>;