From 20fad3e2b88ce0c783e5a644aff0fcb8da955415 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 19 Jan 2009 15:48:04 +0000 Subject: [PATCH] scheme/gui doc fixes (ok to merge to 4.1.4) svn: r13222 --- collects/scribblings/gui/editor-stream-in-base-class.scrbl | 4 ++-- collects/scribblings/gui/editor-stream-out-base-class.scrbl | 4 ++-- collects/scribblings/gui/text-class.scrbl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/collects/scribblings/gui/editor-stream-in-base-class.scrbl b/collects/scribblings/gui/editor-stream-in-base-class.scrbl index fd336631e4..adc5952ef4 100644 --- a/collects/scribblings/gui/editor-stream-in-base-class.scrbl +++ b/collects/scribblings/gui/editor-stream-in-base-class.scrbl @@ -21,10 +21,10 @@ Returns @scheme[#t] if there has been an error reading from the } -@defmethod[(read [data (and/c bytes? (not/c immutable?))]) +@defmethod[(read [data (and/c vector? (not immutable?))]) exact-nonnegative-integer?]{ -Reads characters to fill the supplied vector. The return value is the +Reads Latin-1 characters to fill the supplied vector. The return value is the number of characters read, which may be less than the number requested if the stream is emptied. If the stream is emptied, the next call to @method[editor-stream-in-base% bad?] must return diff --git a/collects/scribblings/gui/editor-stream-out-base-class.scrbl b/collects/scribblings/gui/editor-stream-out-base-class.scrbl index fa05dc5da7..d45aabb57f 100644 --- a/collects/scribblings/gui/editor-stream-out-base-class.scrbl +++ b/collects/scribblings/gui/editor-stream-out-base-class.scrbl @@ -36,9 +36,9 @@ Returns the current stream position. } -@defmethod[(write [data bytes?]) +@defmethod[(write [data (listof char?)]) void?]{ -Writes data to the stream. +Writes data (encoded as Latin-1 characters) to the stream. }} diff --git a/collects/scribblings/gui/text-class.scrbl b/collects/scribblings/gui/text-class.scrbl index a66ba7d02e..edb4ad2aa1 100644 --- a/collects/scribblings/gui/text-class.scrbl +++ b/collects/scribblings/gui/text-class.scrbl @@ -9,7 +9,7 @@ A @scheme[text%] object is a standard text editor. A text editor is @defconstructor[([line-spacing (and/c real? (not/c negative?)) 1.0] - [tab-stops (listof real?)] + [tab-stops (listof real?) null] [auto-wrap any/c #f])]{ The @scheme[line-spacing] argument sets the additional amount of space