diff options
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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] = []; |