From b6ee044f754ce599ead5907ae62556ecc549db84 Mon Sep 17 00:00:00 2001 From: Chandan Kalita <64311066+Chandan-Kalita@users.noreply.github.com> Date: Wed, 8 Apr 2026 22:56:52 +0530 Subject: [PATCH] Fix log_call macro to properly log function calls --- python-book/src/ch12-closures-and-iterators.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-book/src/ch12-closures-and-iterators.md b/python-book/src/ch12-closures-and-iterators.md index 6af7319..00732c1 100644 --- a/python-book/src/ch12-closures-and-iterators.md +++ b/python-book/src/ch12-closures-and-iterators.md @@ -306,8 +306,10 @@ struct Point { // Declarative macro (like a template) macro_rules! log_call { ($func_name:expr, $body:expr) => { - println!("Calling {}", $func_name); - $body + { + println!("Calling {}", $func_name); + $body + } }; }