Nuts. I went through all the questions in the book looking for conversion errors on the
test site in one weekend when they did the conversion. (I wasn't given long to submit feedback.) I found over a dozen conversion errors that weekend; all of which were fixed before the book went live. I found errors in most questions with images and a few others. I focused on the answers and not the code snippets. I'll try to do do another pass tomorrow of the code blocks and then complain to the publisher. On the bright side, now I have the printed book which will make that comparison easier!
Since you have the print book, at least you have access to the intended question. It is possible to just buy the e-book though. So if anyone else stumbles on this before it is fixed, the code was supposed to be:
I've credited you in the errata. But since this is web only, I plan to delete that line from the errata once it is fixed.