From 90511c90af0320620d9210039be292613324dd92 Mon Sep 17 00:00:00 2001 From: Keita Haga Date: Sat, 5 Feb 2011 00:00:14 +0900 Subject: [PATCH] macros: clean up the usage example of MACRO: syntax --- basis/macros/macros-docs.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/macros/macros-docs.factor b/basis/macros/macros-docs.factor index 133509687f..91aa2fa3e5 100644 --- a/basis/macros/macros-docs.factor +++ b/basis/macros/macros-docs.factor @@ -16,9 +16,9 @@ HELP: MACRO: { $examples "A macro that calls a quotation but preserves any values it consumes off the stack:" { $code - "USING: fry generalizations ;" + "USING: fry generalizations kernel macros stack-checker ;" "MACRO: preserving ( quot -- )" - " [ infer in>> length ] keep '[ _ ndup @ ] ;" + " [ inputs ] keep '[ _ ndup @ ] ;" } "Using this macro, we can define a variant of " { $link if } " which takes a predicate quotation instead of a boolean; any values consumed by the predicate quotation are restored immediately after:" { $code