summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-09 02:32:49 -0400
committerpommicket <pommicket@gmail.com>2025-09-09 02:33:12 -0400
commit9c72ccfe61df5cc2ef05f2982b748d73ff28b406 (patch)
treee0a05d0b576ac1fd22387b8d670250b8ab355194 /src/lib.rs
parent323fbd1a50643e6834f66de22d7524979ee5bff7 (diff)
Clean up spacing
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 77990bf..acd3eb1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -862,8 +862,7 @@ impl Configuration {
///
/// Commas in list entries can be escaped with `\,`.
///
- /// `default` can be any iterable-of-strings
- /// (e.g. `&[&str]`, `Vec<String>`, etc.).
+ /// `default` can be any iterable-of-strings (`&[&str]`, `Vec<String>`, etc.).
pub fn get_list_or_default<L>(&self, key: &str, default: L) -> Vec<String>
where
L: IntoIterator,
@@ -872,6 +871,7 @@ impl Configuration {
self.get_list(key)
.unwrap_or_else(|| default.into_iter().map(String::from).collect())
}
+
/// Get value associated with `key`, and parse it as a comma-separated list, or else use `[]`.
pub fn get_list_or_empty(&self, key: &str) -> Vec<String> {
let empty: [&'static str; 0] = [];