Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Incorrect contract for previous-line function #19

Closed
slaymaker1907 opened this issue May 8, 2019 · 2 comments
Closed

Incorrect contract for previous-line function #19

slaymaker1907 opened this issue May 8, 2019 · 2 comments

Comments

@slaymaker1907
Copy link

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.

@mbutterick
Copy link
Owner

The code seems to be right; the documentation was wrong.

@mbutterick
Copy link
Owner

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants