Commit Graph

24 Commits

Author SHA1 Message Date
NoahStoryM
b5660ce0dc Fix bug.
(begin (set! x (cons 'ctc x)) any/c)
should be evaluated whenever `f' is called. If there isn't an arg list (), it would only be evaluated 1 time.

https://github.com/racket/racket/issues/2711
2020-05-14 09:04:56 -04:00
Sorawee Porncharoenwase
b0cb1adda6 Fixes #2219: correct the contract for rem
I didn't use the suggested fix by either @Syntacticlosure or @mfelleisen
because there's another usage of `not-has?` which is correct already, so
changing `not-has?` would break it.
2020-05-07 07:19:10 -04:00
Brian Wignall
ffa6d2ef74 Fix typos, via a Levenshtein-style corrector (#2982) 2019-12-19 08:28:13 +01:00
Ben Greenman
3628df837a doc: partially revert eb20dc44
Bring back the exists gotcha, but not the references to the
`racket/exists' language.
2019-11-03 09:41:35 -05:00
Sage Gerard
eb20dc4463 Delete racket/exists paragraph (#2873)
* Delete racket/exists paragraph

* Remove @ctc-link for exists-gotcha
2019-11-02 21:36:14 -04:00
Matthias Felleisen
89e1ba55a5 fix contract in docs, fixes #2780 2019-08-04 10:36:04 -04:00
Noah W M
c84765b554 Update general-function.scrbl 2019-06-27 23:08:13 -05:00
Paulo Matos
1efe1ebbf1 Revert "Fix typo"
This reverts commit 9a731f45f9.

Not a typo as pointed out in 9a731f45f9 (commitcomment-32813840)
2019-03-19 08:38:33 +01:00
Paulo Matos
9a731f45f9
Fix typo
s/intensionally/intentionally
2019-03-18 23:52:32 +01:00
Matthias Felleisen
077a11c84f
remove reference to Scheme Cookbook
This citation was too scholarly anyways for our Guideline. [[ The code could have been from anybody's library. ]]
2019-03-13 15:15:25 -04:00
Gan Shen
8ce8058796 fix typo 2018-12-16 11:09:24 -06:00
Robby Findler
34189b38f7 attmpet to clarify define/contract's boundary a bit more 2018-03-02 14:44:46 -06:00
Weng Shiwei
4bad4d7655 should be "requiring" module invokes the function
Before this line, it says the function flows from providing module to requiring module.
After this line, it says the argument travels back from requiring moduleo to providing module.
I believe that argument supplying and function invoking should happen at requiring module, rather than providing module.
2017-07-28 10:43:10 -06:00
Alexis King
69fb636a1c Add a missing for-label require in the contracts section of the guide 2017-05-30 20:09:50 -07:00
Robby Findler
e7f68472e5 the "I don't konw what name to give" name has changed; update the guide to reflect that
closes #1661
2017-04-13 09:37:25 -05:00
Robby Findler
b3d3bf7c01 improve the guide section on how to use the contract library
to build new combinators
2017-04-12 21:27:50 -05:00
Philip McGrath
8bb8365a38 Revise Racket Guide 7.8 Building New Contracts
to use late neg projections in the examples, rather val first projections.
2017-04-12 21:27:50 -05:00
Leandro Facchinetti
05292b7e69 Improve Guide example on `flat-named-contract'
Previously, on the example, the function was not anonymous, so no
`tempN' would appear on the error message.

The fixed example makes use of `flat-named-contract' on an anonymous
function, which resembles the snippet above it and demonstrates the
purpose of `flat-named-contract' better.
2016-03-30 19:31:23 -05:00
Alexis King
95c0dfce38 Include racket/base for-label for the contracts intro in the guide 2016-01-21 20:18:54 -06:00
Robby Findler
2516374744 account for the added caveat line in the example error message dissection
Thanks to Paolo G. Giarrusso for spotting this and proposing a fix
2015-10-03 09:43:51 -05:00
Robby Findler
78ecccc2b1 fewer quotes 2015-05-19 11:17:17 -05:00
Alex Knauth
d30b90cba3 contract docs: explain positive and negative as server and client 2015-05-19 11:14:13 -05:00
Paul Ojanen
e6ffbf2501 Improve reference to code value
Did "temp7" used to print out as "???"?  I would have understood this more quickly if the reference to "temp7" had been more clear.
2015-03-14 17:20:02 -04:00
Matthew Flatt
2d4f3e2ac9 remove the "racket-pkgs" directory layer
The layer is now redundant, since everything left in "pkgs" is in the
"racket-pkgs" category.
2014-12-08 05:22:59 -07:00