3.10 Spring code switched subtraction
edwardloveall opened this issue · 1 comments
edwardloveall commented
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
.
Thanks so much for this book.
shiffman commented
fixed in new repo https://github.com/shiffman/The-Nature-of-Code, thanks for the catch!