Skip to content

Commit fad2901

Browse files
committed
chore: fix foo refs in doctests
1 parent 33aaec8 commit fad2901

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/// ```
44
/// use rust_template_output::hello;
55
///
6-
/// let foo = hello();
7-
/// assert!(!foo.is_empty());
6+
/// let hello_str = hello();
7+
/// assert!(!hello_str.is_empty());
88
/// ```
99
pub fn hello() -> &'static str {
1010
"Hello, World!"
@@ -15,8 +15,8 @@ pub fn hello() -> &'static str {
1515
/// ```
1616
/// use rust_template_output::for_feature;
1717
///
18-
/// let foo = for_feature();
19-
/// assert!(!foo.is_empty());
18+
/// let feature_str = for_feature();
19+
/// assert!(!feature_str.is_empty());
2020
/// ```
2121
#[cfg(feature = "test_feature_1")]
2222
pub fn for_feature() -> &'static str {

0 commit comments

Comments
 (0)