From e164358d01c692e06c4ae4f461df35a369f98dcf Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Fri, 15 Mar 2013 07:52:22 -0700 Subject: [PATCH] help.handbook: show vocab name for strict encodings. --- basis/help/handbook/handbook.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/help/handbook/handbook.factor b/basis/help/handbook/handbook.factor index a6a2f1c25b..6296eb5ab1 100644 --- a/basis/help/handbook/handbook.factor +++ b/basis/help/handbook/handbook.factor @@ -186,7 +186,7 @@ ARTICLE: "encodings-introduction" "An introduction to encodings" "Constructors for streams which deal with bytes usually take an encoding as an explicit parameter. For example, to open a text file for reading whose contents are in UTF-8, use the following" { $code "\"file.txt\" utf8 " } "If there is an error in the encoded stream, a replacement character (0xFFFD) will be inserted. To throw an exception upon error, use a strict encoding as follows" -{ $code "\"file.txt\" utf8 strict " } +{ $code "USE: io.encodings.strict" "\"file.txt\" utf8 strict " } "In a similar way, encodings can be specified when opening a file for writing." { $code "USE: io.encodings.ascii" "\"file.txt\" ascii " } "An encoding is also needed for some words that don't return streams, such as " { $link file-contents } ", for example"