diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -559,7 +559,7 @@ impl Parser { format!("{current_section}.{relative_key}") }; value = value.trim_start_matches(['\t', ' ']); - if value.starts_with(['`', '"', '\'']) { + if value.starts_with(['`', '"']) { let (value, new_line_number) = self.read_quoted_value(value, reader, &location)?; items.push(( @@ -651,6 +651,9 @@ impl Configuration { /// (So if there were keys `sheep.age`, `sheep.colour`, and `farmer-name`, /// this would give an iterator yielding /// `"farmer-name"` and `"sheep"` in some order.) + /// + /// The order of items returned is arbitrary and may change + /// in future versions without notice. pub fn keys(&self) -> impl '_ + Iterator<Item = &str> { let mut prev = None; self.items.iter().filter_map(move |(key, _)| { |