Skip to content

Add errata print01-ch07-lst2-open-paren #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions _errata/print01-ch07-lst2-closing-brace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
chapter: 7
page: 103
kind: code
reporter: nmarley
date: 2023-01-05
---

Listing 7-2 closes the `test_battery` macro invocation with a closing paren and semicolon `);`:

```rust
...
test_battery! {
u8 as u8_tests,
// ...
i128 as i128_tests
);
```

... instead of a closing brace `}`:

```rust
...
test_battery! {
u8 as u8_tests,
// ...
i128 as i128_tests
}
```