From e0f2d9c0d642f58becfc03988b77207e8e307617 Mon Sep 17 00:00:00 2001 From: Brian Lachance Date: Mon, 7 Sep 2015 12:05:36 -0400 Subject: [PATCH] Fix make-contract example to show the correct contract violation There was a duplicate quote around `given:' which caused a violation in make-contract's internals. --- pkgs/racket-doc/scribblings/reference/contracts.scrbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/racket-doc/scribblings/reference/contracts.scrbl b/pkgs/racket-doc/scribblings/reference/contracts.scrbl index f1dbde8969..0ba6295bd7 100644 --- a/pkgs/racket-doc/scribblings/reference/contracts.scrbl +++ b/pkgs/racket-doc/scribblings/reference/contracts.scrbl @@ -1979,7 +1979,7 @@ to determine if this is a contract that accepts only @racket[list?] values. (λ (x) (range (f (domain x)))) (raise-blame-error b f - '(expected "a function of one argument" 'given: "~e") + '(expected "a function of one argument" given: "~e") f))))))) (contract int->int/c "not fun" 'positive 'negative) (define halve