From 1c34ce9f1975a44bb8141a87cd540a402319296b Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sat, 3 Sep 2011 13:21:38 -0600 Subject: [PATCH] clarify `define-struct/derived' in docs --- collects/scribblings/reference/define-struct.scrbl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/collects/scribblings/reference/define-struct.scrbl b/collects/scribblings/reference/define-struct.scrbl index 32619f0c74..e19f32c51f 100644 --- a/collects/scribblings/reference/define-struct.scrbl +++ b/collects/scribblings/reference/define-struct.scrbl @@ -236,11 +236,12 @@ preferred. @defform[(define-struct/derived (id . rest-form) id-maybe-super (field ...) struct-option ...)]{ -Like @racket[define-struct], but intended for use by macros that -expand to @racket[define-struct]. The form immediately after -@racket[define-struct/derived] is used for all syntax-error reporting, -and the only constraint on the form is that it starts with some -@racket[id]. +The same as @racket[define-struct], but with an extra @racket[(id +. rest-form)] sub-form that is treated as the overall form for +syntax-error reporting and otherwise ignored. The only constraint on +the sub-form for error reporting is that it starts with @racket[id]. +The @racket[define-struct/derived] form is intended for use by macros +that expand to @racket[define-struct]. @defexamples[ #:eval posn-eval