From 7d225a1e284406d011f9487710d23519e5455738 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 23 Oct 2023 16:32:21 +0100 Subject: [PATCH 1/2] Fix a doc link to with_list_parse_key Signed-off-by: Ian Jackson Signed-off-by: Matthias Beyer --- src/env.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/env.rs b/src/env.rs index 78233839..8f2af34b 100644 --- a/src/env.rs +++ b/src/env.rs @@ -142,7 +142,9 @@ impl Environment { } /// When set and try_parsing is true, then all environment variables will be parsed as [`Vec`] instead of [`String`]. - /// See [`with_list_parse_key`] when you want to use [`Vec`] in combination with [`String`]. + /// See + /// [`with_list_parse_key`](Self::with_list_parse_key) + /// when you want to use [`Vec`] in combination with [`String`]. pub fn list_separator(mut self, s: &str) -> Self { self.list_separator = Some(s.into()); self From 11adf43d69d16431b8ed3f77ae071390b5709513 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 23 Oct 2023 16:33:39 +0100 Subject: [PATCH 2/2] Fix a doc link by properly marking Vec Signed-off-by: Ian Jackson Signed-off-by: Matthias Beyer --- src/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.rs b/src/env.rs index 8f2af34b..d817d3a7 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, - /// A list of keys which should always be parsed as a list. If not set you can have only Vec 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` or `String` (not both) in one environment. list_parse_keys: Option>, /// Ignore empty env values (treat as unset).