fix typos in the documentation of prop:convertible

This commit is contained in:
Fred Fu 2019-06-11 14:49:28 -04:00 committed by Ben Greenman
parent 0ced8ace34
commit 8e38f1d5cb

View File

@ -22,7 +22,7 @@ should be considered standard:
@item{@racket['text] --- a string for human-readable text}
@item{@racket['gif-bytes] --- a byte string containing a GIF image encoding}
@item{@racket['png-bytes] --- a byte string containing a PNG image encoding}
@item{@racket['png-bytes+bounds] --- a list containing a byte string and four numbers;
@item{@racket['png-bytes+bounds] --- a list containing a byte string and four numbers;
the byte string contains a PNG document, and the four numbers
are sizing information for the image: the width, height,
descent (included in the height), and extra vertical top space
@ -64,7 +64,7 @@ should be considered standard:
but for an PDF document}
]
@defthing[prop:convertible
@defthing[prop:convertible
(struct-type-property/c
(->i ([v convertible?] [request symbol?] [default default/c])
[result
@ -113,7 +113,7 @@ conversion, and the @racket[_default] argument is a value to return (typically
@racket[#f] if the conversion is not supported). The procedure's result
depends on the requested conversion, as above.
The @racket[default/c] contract is one generated by @racket[new-α/c].}
The @racket[default/c] contract is one generated by @racket[new-/c].}
@defproc[(convertible? [v any/c]) boolean?]{
@ -124,7 +124,7 @@ Returns @racket[#t] if @racket[v] supports the conversion protocol,
(case request
[(text)
(or/c string? default/c)]
[(gif-bytes
[(gif-bytes
png-bytes
png@2x-bytes
ps-bytes
@ -163,6 +163,6 @@ indicates the type of requested data and @racket[default] is the value
that the converter should return if it cannot produce data in the
format indicated by @racket[request].
The @racket[default/c] contract is one created by @racket[new-α/c]
The @racket[default/c] contract is one created by @racket[new-/c]
and it guarantees that the result of @racket[convert] is the given
default argument (or @racket[#f] if one is not supplied).}