From 47a89bb520ed73e5c2dde03bb2fc8f27a72fd551 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Tue, 18 Aug 2015 08:32:59 -0700 Subject: [PATCH] doc typo --- scribblings/tutorial-third.scrbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scribblings/tutorial-third.scrbl b/scribblings/tutorial-third.scrbl index 3b1af5f..726beba 100644 --- a/scribblings/tutorial-third.scrbl +++ b/scribblings/tutorial-third.scrbl @@ -469,7 +469,7 @@ expected: 1   given: 3 } -The error arises because the @racket[em] function is getting three arguments — @code{"RacketCon " "BOOM" " year"} — but has been defined to only accept one argument, @racket[word]. This is the ``arity mismatch.'' +The error arises because the @racket[em] function is getting three arguments — @code{"RacketCon " '(strong "this") " year"} — but has been defined to only accept one argument, @racket[word]. This is the ``arity mismatch.'' To fix this, it's better to get in the habit of writing tag functions that accept an indefinite number of input values. You do this by defining your function with a @italic{@seclink["contracts-rest-args" #:doc '(lib "scribblings/guide/guide.scrbl")]{rest argument}} (as in, ``give me the rest of the input values.'') To use a rest argument, put it last in your list of input arguments, and add a period @litchar{.} before: