Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/ch19-06-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ macro with `vec![1, 2, 3];`, the code generated that replaces this macro call
will be the following:

```rust,ignore
let mut temp_vec = Vec::new();
temp_vec.push(1);
temp_vec.push(2);
temp_vec.push(3);
temp_vec
{
let mut temp_vec = Vec::new();
temp_vec.push(1);
temp_vec.push(2);
temp_vec.push(3);
temp_vec
}
```

We’ve defined a macro that can take any number of arguments of any type and can
Expand Down