Incorrect contract for previous-line function
#19
Closed
opened 6 years ago by slaymaker1907
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
The contract seems to specify that it always return exact-nonnegative-integer? but it may return #f if on the first line. This does not seem to be checked currently otherwise the indentation example in the book would fail.
The code seems to be right; the documentation was wrong.
Thanks!