From 923b5864a5afe49fb0a56290a62b9c5cdf8ac5ac Mon Sep 17 00:00:00 2001 From: Vincent St-Amour Date: Fri, 1 Jan 2016 12:51:20 -0600 Subject: [PATCH] Small guide fixes. Closes PR 15109. --- pkgs/racket-doc/scribblings/guide/io.scrbl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/racket-doc/scribblings/guide/io.scrbl b/pkgs/racket-doc/scribblings/guide/io.scrbl index 75c2066666..e578521353 100644 --- a/pkgs/racket-doc/scribblings/guide/io.scrbl +++ b/pkgs/racket-doc/scribblings/guide/io.scrbl @@ -69,10 +69,11 @@ file: (close-output-port out) ] -Instead of having to match @racket[open-input-file] and -@racket[open-output-file] calls, most Racket programmers will instead -use @racket[call-with-output-file], which takes a function to call -with the output port; when the function returns, the port is closed. +Instead of having to match the open calls with close calls, most Racket +programmers will use the @racket[call-with-input-file] and +@racket[call-with-output-file] functions which take a function to call to carry +out the desired operation. This function gets as its only argument the port, +which is automatically opened and closed for the operation. @examples[ #:eval io-eval @@ -318,7 +319,7 @@ Other structure types created by @racket[struct], which offer more abstraction than @tech{prefab} structure types, normally @racket[write] either using @racketresultfont{#<....>} notation (for opaque structure types) or using @racketresultfont{#(....)} vector -notation (for transparent structure types). In neither can the +notation (for transparent structure types). In neither case can the result be read back in as an instance of the structure type: @interaction[