Closed edwardloveall closed 8 years ago
In Section 3.10 the code examples do the calculation restLength - currentLength but the proper code (at least in the code repo and example 3.11) is the reverse currentLength - restLength.
restLength - currentLength
currentLength - restLength
Thanks so much for this book.
fixed in new repo https://github.com/shiffman/The-Nature-of-Code, thanks for the catch!
In Section 3.10 the code examples do the calculation
restLength - currentLength
but the proper code (at least in the code repo and example 3.11) is the reversecurrentLength - restLength
.Thanks so much for this book.