From c7ef539828fcb70d33c40e31b90b1ffc4fce3eab Mon Sep 17 00:00:00 2001 From: Charles Lechasseur Date: Sun, 22 Oct 2023 00:43:56 -0400 Subject: [PATCH] chore: fix foo refs in doctests --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6c0a773..6bab565 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,8 +3,8 @@ /// ``` /// use rust_template_output::hello; /// -/// let foo = hello(); -/// assert!(!foo.is_empty()); +/// let hello_str = hello(); +/// assert!(!hello_str.is_empty()); /// ``` pub fn hello() -> &'static str { "Hello, World!" @@ -15,8 +15,8 @@ pub fn hello() -> &'static str { /// ``` /// use rust_template_output::for_feature; /// -/// let foo = for_feature(); -/// assert!(!foo.is_empty()); +/// let feature_str = for_feature(); +/// assert!(!feature_str.is_empty()); /// ``` #[cfg(feature = "test_feature_1")] pub fn for_feature() -> &'static str {