Skip to content

Commit 39d8820

Browse files
committed
docs: copy line to other one
1 parent 1f41a19 commit 39d8820

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/from_env.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ pub trait FromEnvVar: core::fmt::Debug + Sized + 'static {
379379
/// Load the primitive from the environment at the given variable. If the
380380
/// variable is unset or empty, return the value generated by
381381
/// [`Default::default`].
382+
///
383+
/// This function will return an error if the environment variable is set
384+
/// but cannot be parsed.
382385
fn from_env_var_or_default(env_var: &str) -> Result<Self, FromEnvErr<Self::Error>>
383386
where
384387
Self: Default,

0 commit comments

Comments
 (0)