Skip to content

Commit 546b202

Browse files
committed
Note that macros != templates
Good call, @chris-morgan and @cmr!
1 parent 8cd9068 commit 546b202

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/doc/guide.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ The second point is the `println!()` part. This is calling a Rust **macro**,
200200
which is how metaprogramming is done in Rust. If it were a function instead, it
201201
would look like this: `println()`. For our purposes, we don't need to worry
202202
about this difference. Just know that sometimes, you'll see a `!`, and that
203-
means that you're calling a macro instead of a normal function.
203+
means that you're calling a macro instead of a normal function. One last thing
204+
to mention: Rust's macros are significantly different than C++ templates, if
205+
you've used those. Don't be scared of using macros. We'll get to the details
206+
eventually, you'll just have to trust us for now.
204207

205208
Next, `"Hello, world"` is a **string**. Strings are a surprisingly complicated
206209
topic in a systems programming language, and this is a **statically allocated**

0 commit comments

Comments
 (0)