mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 15:05:42 -05:00
Quartz sync: Mar 1, 2024, 11:25 AM
This commit is contained in:
parent
9c9edd6b1d
commit
b7e0816566
@ -37,7 +37,7 @@ quote!{
|
|||||||
|
|
||||||
Here, everything inside the `#()` parenthetical will be repeatedly generated for each element of `some_vec`, with `#some_vec` expanding to the element at the current index. Presumably it contains the `Ident` s of some variable names of type `i32` that we want to declare and assign 5 to all of them in our macro. An expansion might look like:
|
Here, everything inside the `#()` parenthetical will be repeatedly generated for each element of `some_vec`, with `#some_vec` expanding to the element at the current index. Presumably it contains the `Ident` s of some variable names of type `i32` that we want to declare and assign 5 to all of them in our macro. An expansion might look like:
|
||||||
```rust
|
```rust
|
||||||
let x = 5;let y = 5; let z = 5;
|
let x = 5;let y = 5;let z = 5;
|
||||||
```
|
```
|
||||||
|
|
||||||
It's okay that it's not pretty because the compiler will see it as valid anyway.
|
It's okay that it's not pretty because the compiler will see it as valid anyway.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user