nature-of-code/The-Nature-of-Code-archive

3.10 Spring code switched subtraction

edwardloveall opened this issue · 1 comments

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.

fixed in new repo https://github.com/shiffman/The-Nature-of-Code, thanks for the catch!