Skip to content

Commit c1833ea

Browse files
Merge pull request #32 from rafalfitt/patch-1
Fix typo in Rust macros explanation
2 parents bfca75a + d5d1703 commit c1833ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎c-cpp-book/src/ch02-getting-started.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
- The above syntax should be similar to anyone familiar with C-style languages
1111
- All functions in Rust begin with the ```fn``` keyword
1212
- The default entry point for executables is ```main()```
13-
- The ```println!``` looks like a function, but is actually a **macro**. Macros in Rust are very different from C/C++ preprocessor macros \u2014 they are hygienic, type-safe, and operate on the syntax tree rather than text substitution
13+
- The ```println!``` looks like a function, but is actually a **macro**. Macros in Rust are very different from C/C++ preprocessor macros — they are hygienic, type-safe, and operate on the syntax tree rather than text substitution
1414
- Two great ways to quickly try out Rust snippets:
1515
- **Online**: [Rust Playground](https://play.rust-lang.org/) — paste code, hit Run, share results. No install needed
1616
- **Local REPL**: Install [`evcxr_repl`](https://github.com/evcxr/evcxr) for an interactive Rust REPL (like Python's REPL, but for Rust):

0 commit comments

Comments
 (0)