update docs for unbalanced-branches-error

db4
Joe Groff 2010-03-09 18:42:10 -08:00
parent 34b29af245
commit b9bced9a5e
1 changed files with 6 additions and 5 deletions

View File

@ -63,15 +63,16 @@ HELP: bad-macro-input
} ;
HELP: unbalanced-branches-error
{ $values { "in" "a sequence of integers" } { "out" "a sequence of integers" } }
{ $description "Throws an " { $link unbalanced-branches-error } "." }
{ $error-description "Thrown when inference encounters an " { $link if } " or " { $link dispatch } " where the branches do not all exit with the same stack height. See " { $link "inference-branches" } " for details." }
{ $notes "If this error comes up when inferring the stack effect of a recursive word, check the word's stack effect declaration; it might be wrong." }
{ $error-description "Thrown when inference encounters an inline combinator whose input quotations do not match their declared effects, or when it encounters an " { $link if } " or " { $link dispatch } " whose branches do not all exit with the same stack height. See " { $link "inference-combinators" } " and " { $link "inference-branches" } " for details." }
{ $examples
{ $code
": unbalanced-branches-example ( a b c -- )"
": if-unbalanced-branches-example ( a b c -- )"
" [ + ] [ dup ] if ;"
}
{ $code
": each-unbalanced-branches-example ( x seq -- x' )"
" [ 3append ] each ;"
}
} ;
HELP: too-many->r