summaryrefslogtreecommitdiffstats
path: root/src/env.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.rs')
-rw-r--r--src/env.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/env.rs b/src/env.rs
index 7823383..d817d3a 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -41,7 +41,7 @@ pub struct Environment {
/// Optional character sequence that separates each env value into a vector. only works when try_parsing is set to true
/// Once set, you cannot have type String on the same environment, unless you set list_parse_keys.
list_separator: Option<String>,
- /// A list of keys which should always be parsed as a list. If not set you can have only Vec<String> or String (not both) in one environment.
+ /// A list of keys which should always be parsed as a list. If not set you can have only `Vec<String>` or `String` (not both) in one environment.
list_parse_keys: Option<Vec<String>>,
/// Ignore empty env values (treat as unset).
@@ -142,7 +142,9 @@ impl Environment {
}
/// When set and try_parsing is true, then all environment variables will be parsed as [`Vec<String>`] instead of [`String`].
- /// See [`with_list_parse_key`] when you want to use [`Vec<String>`] in combination with [`String`].
+ /// See
+ /// [`with_list_parse_key`](Self::with_list_parse_key)
+ /// when you want to use [`Vec<String>`] in combination with [`String`].
pub fn list_separator(mut self, s: &str) -> Self {
self.list_separator = Some(s.into());
self