Skip to content

Commit 3d5bec5

Browse files
authored
Fix typo in Control Flow Basics - Macro code snippet (#1638)
Fixes #1637
1 parent 43474d2 commit 3d5bec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/control-flow-basics/macros.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ fn fizzbuzz(n: u32) -> u32 {
3232
}
3333
3434
fn main() {
35-
let n = 13;
36-
println!("{n}! = {}", factorial(4));
35+
let n = 4;
36+
println!("{n}! = {}", factorial(n));
3737
}
3838
```
3939

0 commit comments

Comments
 (0)