diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2023-10-23 18:48:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 18:48:32 +0200 |
commit | 18873691500efb1f04f97b48d1018a003b2e7f75 (patch) | |
tree | f8fee25f6414d7bf0995c609bdbf39ce67ee2594 | |
parent | 8e4fb6fc8e8474b8d8de9a29cfe5d3e1d702cb40 (diff) | |
parent | 11adf43d69d16431b8ed3f77ae071390b5709513 (diff) |
Merge pull request #481 from ijackson/warning
Fix docs warnings
-rw-r--r-- | src/env.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |