From 3d74bab8ff3146ae2bfa35fa6c36b7d7775c97ea Mon Sep 17 00:00:00 2001 From: shhyou Date: Wed, 13 Dec 2017 16:38:05 -0600 Subject: [PATCH] Fix the document of struct-type-make-constructor --- .../scribblings/reference/struct-inspectors.scrbl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/racket-doc/scribblings/reference/struct-inspectors.scrbl b/pkgs/racket-doc/scribblings/reference/struct-inspectors.scrbl index 0bd888dba0..8d69ad0920 100644 --- a/pkgs/racket-doc/scribblings/reference/struct-inspectors.scrbl +++ b/pkgs/racket-doc/scribblings/reference/struct-inspectors.scrbl @@ -129,11 +129,14 @@ Returns eight values that provide information about the structure type If the type for @racket[struct-type] is not controlled by the current inspector, the @exnraise[exn:fail:contract].} -@defproc[(struct-type-make-constructor [struct-type struct-type?]) +@defproc[(struct-type-make-constructor [struct-type struct-type?] + [constructor-name (or/c symbol? #f) #f]) struct-constructor-procedure?]{ Returns a @tech{constructor} procedure to create instances of the type -for @racket[struct-type]. If the type for @racket[struct-type] is not +for @racket[struct-type]. If @racket[constructor-name] is not @racket[#f], +it is used as the name of the generated @tech{constructor} procedure. +If the type for @racket[struct-type] is not controlled by the current inspector, the @exnraise[exn:fail:contract].}