Skip to content

Commit

Permalink
Update macros.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DrW3RK authored Sep 14, 2023
1 parent 818fc5b commit 65641dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Rust/section7/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Macros in Rust is, in the most basic sense, "code that writes code", also known
_metaprogramming_. By now, you have seen the `println!()` macro many times, and it illustrates how
useful macros may be in everyday coding.

<iframe width="560" height="315" src="https://www.youtube.com/embed/3ZIc0V9X9xo?si=iib4oo30pY2kRwM5" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Another prime example that you have seen is the use of the `#[derive]` macro, which can implement
traits on types automatically:

Expand Down

0 comments on commit 65641dc

Please sign in to comment.