From b06fe6fe9addf0ed54af47255b06f48605cc0f94 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Thu, 14 Aug 2008 23:35:35 -0500 Subject: [PATCH] Fix help lint --- basis/help/lint/lint.factor | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/basis/help/lint/lint.factor b/basis/help/lint/lint.factor index 9cbffe2d33..c4f4a46710 100755 --- a/basis/help/lint/lint.factor +++ b/basis/help/lint/lint.factor @@ -3,9 +3,9 @@ USING: accessors sequences parser kernel help help.markup help.topics words strings classes tools.vocabs namespaces io io.streams.string prettyprint definitions arrays vectors -combinators splitting debugger hashtables sorting effects vocabs -vocabs.loader assocs editors continuations classes.predicate -macros math sets eval ; +combinators combinators.short-circuit splitting debugger +hashtables sorting effects vocabs vocabs.loader assocs editors +continuations classes.predicate macros math sets eval ; IN: help.lint : check-example ( element -- ) @@ -43,15 +43,15 @@ IN: help.lint : check-values ( word element -- ) { - { [ over "declared-effect" word-prop ] [ 2drop ] } - { [ dup contains-funky-elements? not ] [ 2drop ] } - { [ over macro? not ] [ 2drop ] } + [ drop "declared-effect" word-prop not ] + [ nip contains-funky-elements? ] + [ drop macro? ] [ [ effect-values >array ] [ extract-values >array ] - bi* assert= + bi* = ] - } cond ; + } 2|| [ "$values don't match stack effect" throw ] unless ; : check-see-also ( word element -- ) nip \ $see-also swap elements [