]> gitweb.factorcode.org Git - factor.git/commitdiff
prettyprint-docs: fix the slot accessors in a code example
authorAlexander Iljin <ajsoft@yandex.ru>
Sun, 24 Mar 2019 23:30:40 +0000 (00:30 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 24 Mar 2019 23:45:31 +0000 (16:45 -0700)
basis/prettyprint/prettyprint-docs.factor

index 03f3f93b1eae1631a79dff0ac4f842af4f9fef72..d91203bca572662156eb84288e7ddc6102c7bdaa 100644 (file)
@@ -126,7 +126,7 @@ ARTICLE: "prettyprint-literal" "Literal prettyprinting protocol"
 "However, we can define three methods easily enough:"
 { $code
     "M: rect pprint-delims drop \\ RECT[ \\ ] ;"
-    "M: rect >pprint-sequence dup rect-w \\ * rot rect-h 3array ;"
+    "M: rect >pprint-sequence dup w>> \\ * rot h>> 3array ;"
     "M: rect pprint* pprint-object ;"
 }
 "Now, it will be printed in a custom way:"