]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/io/encodings/string/string-docs.factor
factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping ...
[factor.git] / basis / io / encodings / string / string-docs.factor
index 8dce520ddb8391b9b523188c161a9c72a80834c9..077a763a33fbe62cc32fdc41301bae596167e434 100644 (file)
@@ -17,9 +17,9 @@ HELP: decode
     { "string" string } }
 { $description "Converts an array of bytes to a string, interpreting that array of bytes as a string with the given encoding." }
 { $examples
-    { $example """USING: io.encodings.string io.encodings.utf8 prettyprint ;
-B{ 230 136 145 231 136 177 228 189 160 } utf8 decode ."""
-""""我爱你""""
+    { $example "USING: io.encodings.string io.encodings.utf8 prettyprint ;
+B{ 230 136 145 231 136 177 228 189 160 } utf8 decode ."
+"\"我爱你\""
     }
 } ;
 
@@ -27,8 +27,8 @@ HELP: encode
 { $values { "string" string } { "encoding" "an encoding descriptor" } { "byte-array" byte-array } }
 { $description "Converts a string into a byte array, interpreting that string with the given encoding." }
 { $examples
-    { $example """USING: io.encodings.string io.encodings.utf8 prettyprint ;
-"我爱你" utf8 encode ."""
+    { $example "USING: io.encodings.string io.encodings.utf8 prettyprint ;
+\"我爱你\" utf8 encode ."
 "B{ 230 136 145 231 136 177 228 189 160 }"
     }
 } ;