From c408900694e8f6b2cc4a4f1b56c788ba66284db5 Mon Sep 17 00:00:00 2001 From: Kevin M Granger Date: Tue, 12 Jul 2022 15:46:34 -0400 Subject: [PATCH] Use doc links for docs that reference other items. Also simplify fully-qualified references in the docs. --- dotenv/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dotenv/src/lib.rs b/dotenv/src/lib.rs index 6164488e..6821cc1e 100644 --- a/dotenv/src/lib.rs +++ b/dotenv/src/lib.rs @@ -78,7 +78,7 @@ pub fn from_path>(path: P) -> Result<()> { iter.load() } -/// Like `from_path`, but returns an iterator over variables instead of loading into environment. +/// Like [from_path], but returns an iterator over variables instead of loading into environment. /// /// Examples /// @@ -105,7 +105,7 @@ pub fn from_path_iter>(path: P) -> Result> { /// dotenvy::from_filename("custom.env").ok(); /// ``` /// -/// It is also possible to do the following, but it is equivalent to using `dotenvy::dotenv()`, +/// It is also possible to do the following, but it is equivalent to using [dotenv], /// which is preferred. /// /// ``` @@ -117,14 +117,14 @@ pub fn from_filename>(filename: P) -> Result { Ok(path) } -/// Like `from_filename`, but returns an iterator over variables instead of loading into environment. +/// Like [from_filename], but returns an iterator over variables instead of loading into environment. /// /// # Examples /// ``` /// dotenvy::from_filename("custom.env").ok(); /// ``` /// -/// It is also possible to do the following, but it is equivalent to using `dotenvy::dotenv()`, +/// It is also possible to do the following, but it is equivalent to using [dotenv_iter], /// which is preferred. /// /// ```no_run @@ -153,7 +153,7 @@ pub fn dotenv() -> Result { Ok(path) } -/// Like `dotenv`, but returns an iterator over variables instead of loading into environment. +/// Like [dotenv], but returns an iterator over variables instead of loading into environment. /// /// # Examples /// ```no_run