Skip to content

Commit 1887369

Browse files
Merge pull request #481 from ijackson/warning
Fix docs warnings
2 parents 8e4fb6f + 11adf43 commit 1887369

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/env.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct Environment {
4141
/// Optional character sequence that separates each env value into a vector. only works when try_parsing is set to true
4242
/// Once set, you cannot have type String on the same environment, unless you set list_parse_keys.
4343
list_separator: Option<String>,
44-
/// 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.
44+
/// 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.
4545
list_parse_keys: Option<Vec<String>>,
4646

4747
/// Ignore empty env values (treat as unset).
@@ -142,7 +142,9 @@ impl Environment {
142142
}
143143

144144
/// When set and try_parsing is true, then all environment variables will be parsed as [`Vec<String>`] instead of [`String`].
145-
/// See [`with_list_parse_key`] when you want to use [`Vec<String>`] in combination with [`String`].
145+
/// See
146+
/// [`with_list_parse_key`](Self::with_list_parse_key)
147+
/// when you want to use [`Vec<String>`] in combination with [`String`].
146148
pub fn list_separator(mut self, s: &str) -> Self {
147149
self.list_separator = Some(s.into());
148150
self

0 commit comments

Comments
 (0)