From d66e0fc3d26e485d28f52c24cd7b92287e683cf1 Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Mon, 27 Oct 2014 14:32:44 -0400 Subject: [PATCH] Add deftech for fallback/default methods in docs --- .../racket-doc/scribblings/reference/generic.scrbl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/racket-pkgs/racket-doc/scribblings/reference/generic.scrbl b/pkgs/racket-pkgs/racket-doc/scribblings/reference/generic.scrbl index 394d1fe989..7aa45390b7 100644 --- a/pkgs/racket-pkgs/racket-doc/scribblings/reference/generic.scrbl +++ b/pkgs/racket-pkgs/racket-doc/scribblings/reference/generic.scrbl @@ -62,7 +62,8 @@ Defines the following names, plus any specified by keyword options. The @racket[#:defaults] option may be provided at most once. When it is provided, each generic function -uses @racket[default-pred?]s to dispatch to the given default implementations, +uses @racket[default-pred?]s to dispatch to the given +@deftech{default method} implementations, @racket[default-impl]s, if dispatching to the generic method table fails. The syntax of the @racket[default-impl]s is the same as the methods provided for the @racket[#:methods] keyword for @racket[struct]. @@ -75,7 +76,8 @@ lists and vectors, that do not overlap with structures implementing @racketidfont{gen:}@racket[id]. The @racket[#:fallbacks] option may be provided at most once. -When it is provided, the @racket[fallback-impl]s define method implementations +When it is provided, the @racket[fallback-impl]s define +@deftech{fallback method} implementations that are used for any instance of the generic interface that does not supply a specific implementation. The syntax of the @racket[fallback-impl]s is the same as the methods provided for the @racket[#:methods] keyword for @racket[struct].