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 Oct 22, 2023
1 parent 6bce6eb commit fabdd26
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 fabdd26

Please sign in to comment.