racket/generic: doc improvements

This commit is contained in:
Asumu Takikawa 2012-05-26 13:53:43 -04:00
parent 05394aff7e
commit 81d13ee7ed
2 changed files with 6 additions and 4 deletions

View File

@ -531,7 +531,7 @@ Returns a list of the associations from
A @tech{generic interface} (see @secref["struct-generics"]) that A @tech{generic interface} (see @secref["struct-generics"]) that
supplies dictionary method implementations for a structure type. 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 The provided implementations are applied only to instances of the structure
type. The following methods can be implemented: type. The following methods can be implemented:

View File

@ -777,10 +777,12 @@ A shorthand for nested @racket[stream-cons]es ending with
@defthing[gen:stream any/c]{ @defthing[gen:stream any/c]{
Associates three methods to a structure type to implement the 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. To supply method implementations, the @racket[#:methods] keyword
The following three methods should be implemented: should be used in a structure type definition. The following three
methods should be implemented:
@itemize[ @itemize[
@item{@racket[stream-empty?] : accepts one argument} @item{@racket[stream-empty?] : accepts one argument}