From 81d13ee7ed2d5f4d9c6731fb843d889541f25996 Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Sat, 26 May 2012 13:53:43 -0400 Subject: [PATCH] racket/generic: doc improvements --- collects/scribblings/reference/dicts.scrbl | 2 +- collects/scribblings/reference/sequences.scrbl | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/collects/scribblings/reference/dicts.scrbl b/collects/scribblings/reference/dicts.scrbl index 2e2e75fc4d..dc32273731 100644 --- a/collects/scribblings/reference/dicts.scrbl +++ b/collects/scribblings/reference/dicts.scrbl @@ -531,7 +531,7 @@ Returns a list of the associations from A @tech{generic interface} (see @secref["struct-generics"]) that supplies dictionary method implementations for a structure type. -To supply method implementations, the @racket[methods] form should be used. +To supply method implementations, the @racket[#:methods] form should be used. The provided implementations are applied only to instances of the structure type. The following methods can be implemented: diff --git a/collects/scribblings/reference/sequences.scrbl b/collects/scribblings/reference/sequences.scrbl index acdc50f3d0..621dc29ae8 100644 --- a/collects/scribblings/reference/sequences.scrbl +++ b/collects/scribblings/reference/sequences.scrbl @@ -777,10 +777,12 @@ A shorthand for nested @racket[stream-cons]es ending with @defthing[gen:stream any/c]{ Associates three methods to a structure type to implement the - @tech{generic interface} for streams. + @tech{generic interface} (see @secref["struct-generics"]) for + streams. - To supply method implementations, the @racket[#:methods] keyword should be used. - The following three methods should be implemented: + To supply method implementations, the @racket[#:methods] keyword + should be used in a structure type definition. The following three + methods should be implemented: @itemize[ @item{@racket[stream-empty?] : accepts one argument}