From 3d5bec524f56ff4ab0fba0ddb259acedae52c58c Mon Sep 17 00:00:00 2001 From: Karim Ben Amara <78426214+kariyum@users.noreply.github.com> Date: Wed, 3 Jan 2024 15:06:09 +0100 Subject: [PATCH] Fix typo in Control Flow Basics - Macro code snippet (#1638) Fixes #1637 --- src/control-flow-basics/macros.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/control-flow-basics/macros.md b/src/control-flow-basics/macros.md index 9528650a..b61905ab 100644 --- a/src/control-flow-basics/macros.md +++ b/src/control-flow-basics/macros.md @@ -32,8 +32,8 @@ fn fizzbuzz(n: u32) -> u32 { } fn main() { - let n = 13; - println!("{n}! = {}", factorial(4)); + let n = 4; + println!("{n}! = {}", factorial(n)); } ```