ksorensen

ksorensen

Hands-on Rust: Various Typos/Notes B4.0

hands-on-rust_B4.0.pdf

A few more notes. I tried to remove duplicates that others have already posted. Hopefully these are new.

p218
“Don’t forget to activate your module: open map_builder/mod.rs , and insert a line
that imports the module ( mod rooms; ).”
I reported previous examples like this where you have a “use” statement in the code archives but not in the text or code snippets.
use rooms::RoomsArchitect;
The code in the snippets do not compile without this.

p238
When apply_prefab to the build function, there is no mention of adding
mod prefab;
to mam_builder\mods.rs
As above , your archive code also include a use statement:
use prefab::apply_prefab;

p246
When apply_prefab to the build function, there is no mention of adding
mod themes;
to map_builder\mods.rs
or, as seen in in your archive code:
pub use themes::*;

p278 Instruction
We do not have a map variable declared so the code snippet does not compile. Code archive shows the map as a resource in the end_turn function parameters.

Marked As Solved

herbert

herbert

Author of Hands-on Rust

Thanks! I’ve added this into the issue tracker, and will do my best to get them incorporated into beta 5. Keeping the archive code synced with the book code is difficult - so thank you for spotting the issues.

Also Liked

ksorensen

ksorensen

I can’t imagine how you keep track of all that !

Where Next?

Popular Pragmatic Bookshelf topics Top

jon
Some minor things in the paper edition that says “3 2020” on the title page verso, not mentioned in the book’s errata online: p. 186 But...
New
belgoros
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84: bundle exec sequel...
New
ianwillie
Hello Brian, I have some problems with running the code in your book. I like the style of the book very much and I have learnt a lot as...
New
sdmoralesma
Title: Web Development with Clojure, Third Edition - migrations/create not working: p159 When I execute the command: user=> (create-...
New
JohnS
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps. With: ruby-3.0.0 s...
New
AleksandrKudashkin
On the page xv there is an instruction to run bin/setup from the main folder. I downloaded the source code today (12/03/21) and can’t see...
New
brunogirin
When running tox for the first time, I got the following error: ERROR: InterpreterNotFound: python3.10 I realised that I was running ...
New
dsmith42
Hey there, I’m enjoying this book and have learned a few things alredayd. However, in Chapter 4 I believe we are meant to see the “>...
New
creminology
Skimming ahead, much of the following is explained in Chapter 3, but new readers (like me!) will hit a roadblock in Chapter 2 with their ...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
New

Other popular topics Top

Rainer
My first contact with Erlang was about 2 years ago when I used RabbitMQ, which is written in Erlang, for my job. This made me curious and...
New
AstonJ
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
New
Exadra37
On modern versions of macOS, you simply can’t power on your computer, launch a text editor or eBook reader, and write or read, without a ...
New
AstonJ
I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl: The Ser...
New
AstonJ
Seems like a lot of people caught it - just wondered whether any of you did? As far as I know I didn’t, but it wouldn’t surprise me if I...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1142 25749 758
New
Help
I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
New
New
PragmaticBookshelf
Author Spotlight: Tammy Coron @Paradox927 Gaming, and writing games in particular, is about passion, vision, experience, and immersio...
New
CommunityNews
A Brief Review of the Minisforum V3 AMD Tablet. Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New

Sub Categories: