diff --git a/basis/math/combinatorics/combinatorics-docs.factor b/basis/math/combinatorics/combinatorics-docs.factor index d085515713..0ae8c64428 100644 --- a/basis/math/combinatorics/combinatorics-docs.factor +++ b/basis/math/combinatorics/combinatorics-docs.factor @@ -104,7 +104,7 @@ HELP: >permutation { $examples { $example "USING: math.combinatorics.private prettyprint ;" "{ 0 0 0 0 } >permutation ." "{ 0 1 2 3 }" } } ; HELP: next-permutation -{ $values { "seq" sequence } { "seq" sequence } } +{ $values { "seq" sequence } } { $description "Rearranges the elements in " { $snippet "seq" } " into the lexicographically next greater permutation of elements." } { $notes "Performs an in-place modification of " { $snippet "seq" } "." } { $examples { $example "USING: math.combinatorics prettyprint ;" "\"ABC\" next-permutation ." "\"ACB\"" } } ;