Skip to content

Commit e4b8707

Browse files
committed
C macros, not C++ templates.
@cmr rightfully points out that C macros are worse, and share the same name.
1 parent 15bcb2f commit e4b8707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ 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
203203
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
204+
to mention: Rust's macros are significantly different than C macros, if you've
205+
used those. Don't be scared of using macros. We'll get to the details
206206
eventually, you'll just have to trust us for now.
207207

208208
Next, `"Hello, world"` is a **string**. Strings are a surprisingly complicated

0 commit comments

Comments
 (0)