Source for rust-for-rustaceans.com
Home of Reviews and Errata for "Rust for Rustaceans" by Jon Gjengset.
Found a bug?
Just take a look at accepted Errata pull requests and submit in similar form.
Branch / Commit / PR name: "errata print01-ch{nn}-lst{nn} syntax error in example"
---
chapter: 7
page: 103
kind: code
reporter: Jon Gjengset
date: 2022-01-09
---
Listing 7-1 has three closing parens
```rust
macro_rules! test_battery {
($($t:ty as $name:ident),*)) => {
// ...
}
}
```
but should have only two
```rust
macro_rules! test_battery {
($($t:ty as $name:ident),*) => {
// ...
}
}
```
Note:
reporter
can be any identifier you wish, such as- a name or nickname (ex: Jon Gjengset)
- a username or handle (ex: @jonhoo)
- perhaps an email, url, etc
kind
may be one ofcode
inaccuracy
grammar
typo