diff options
author | pommicket <pommicket@gmail.com> | 2025-09-08 12:47:57 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-08 12:47:57 -0400 |
commit | 019e2518a943f22c8d7ffee541ba90326613aeb4 (patch) | |
tree | 18735e0183aa022816e80e48b3ca7c86a16670d8 | |
parent | eb93ed0b575a612af02e14b660e30486c27b9863 (diff) |
Match updates to spec
-rw-r--r-- | examples/conf.pom | 5 | ||||
-rw-r--r-- | src/lib.rs | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/examples/conf.pom b/examples/conf.pom index fde2274..73ee3f1 100644 --- a/examples/conf.pom +++ b/examples/conf.pom @@ -1,8 +1,7 @@ - -indent-using-spaces = yes +indentation-type = tabs show-line-numbers = yes tab-size = 4 -font-size = 18 +font-size = "18" [file-extensions] C = .c @@ -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, _)| { |