Thank for bringing this to my attention. I've now responded to the issue. As I noted there, the poster's code is correct, but my pdf of the book already contains the corrected code.
I'm on the road right now, but I will compare with a printed copy of the book and add this to the errata if necessary.
--Mitch