Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text of the guide mentions a "tempN" that does not appear in error message #1661

Closed
tautologico opened this issue Apr 10, 2017 · 0 comments
Closed

Comments

@tautologico
Copy link

This is a small bug but nevertheless I found it a bit confusing when reading. In Section 7.2.6 of the Racket Guide, "7.2.6 Contract Messages with “tempN”", the text says:

Several clients used your module. Others used their modules in turn. And all of a sudden one of them sees this error message:

> (require 'bank-server)
> (deposit -10)
deposit: contract violation
  expected: ???
  given: -10
  in: the 1st argument of
      (-> ??? any)
  contract from: bank-server
  blaming: top-level
   (assuming the contract is correct)
  at: eval:2.0

What is the temp7 doing there? Wouldn’t it be nice if we had a name for this class of data much like we have string, number, and so on?

But there is no temp7 in the error message, probably changed to ???. The tempN format is also referred to in the section title.

stamourv pushed a commit that referenced this issue Apr 13, 2017
…de to reflect that

closes #1661

(cherry picked from commit e7f6847)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant