Update technical bugs in the surrogate docs.

It claimed two extra methods were generated when no
(#:use-wrapper-proc) was provided: (set/get)-surrogate-wrapper-proc.

Removes that claim from the docs.

Also fix a few minor stray punctuation marks.
This commit is contained in:
Leif Andersen 2018-01-11 14:53:06 -05:00 committed by Matthew Flatt
parent 99a627b195
commit b7cb35fd66

View File

@ -31,10 +31,9 @@ procedure that accepts and returns a class), a host interface, a
surrogate class, and a surrogate interface. surrogate class, and a surrogate interface.
If @racket[#:use-wrapper-proc] does not appear, If @racket[#:use-wrapper-proc] does not appear,
the host mixin adds one field @racket[surrogate]. the host mixin adds one field @racket[surrogate]
to its argument. It also adds getter and setter methods, @racket[get-surrogate], to its argument. It also adds getter and setter methods
@racket[set-surrogate], @racket[get-surrogate-wrapper-proc], and @racket[get-surrogate] and @racket[set-surrogate]. The
@racket[set-surrogate-wrapper-proc] for changing the fields. The
@racket[set-surrogate] method accepts instances of the class returned by @racket[set-surrogate] method accepts instances of the class returned by
the @racket[surrogate] form or @racket[#f], and it updates the field with its the @racket[surrogate] form or @racket[#f], and it updates the field with its
argument; then, @racket[set-surrogate] calls the @racket[on-disable-surrogate] on the argument; then, @racket[set-surrogate] calls the @racket[on-disable-surrogate] on the