Skip to content

Commit

Permalink
chore: fix foo refs in doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
clechasseur committed Dec 30, 2023
1 parent d07f60d commit c7ef539
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand All @@ -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 {
Expand Down

0 comments on commit c7ef539

Please sign in to comment.