From 0e58395a97969c538bad7c4f838a16876398c6e2 Mon Sep 17 00:00:00 2001 From: Giftpflanze Date: Mon, 11 Mar 2024 08:01:52 +0100 Subject: [PATCH] sequences: Fix documentation Arguments m and n do not exist in move and check-slice --- core/sequences/sequences-docs.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sequences/sequences-docs.factor b/core/sequences/sequences-docs.factor index 24fe039099..1356cf7e78 100644 --- a/core/sequences/sequences-docs.factor +++ b/core/sequences/sequences-docs.factor @@ -783,7 +783,7 @@ HELP: remove-nth HELP: move { $values { "to" "an index in " { $snippet "seq" } } { "from" "an index in " { $snippet "seq" } } { "seq" "a mutable sequence" } } -{ $description "Sets the element with index " { $snippet "m" } " to the element with index " { $snippet "n" } "." } +{ $description "Sets the element with index " { $snippet "to" } " to the element with index " { $snippet "from" } "." } { $side-effects "seq" } ; HELP: remove! @@ -1008,7 +1008,7 @@ $nl HELP: check-slice { $values { "from" "a non-negative integer" } { "to" "a non-negative integer" } { "seq" sequence } } -{ $description "Ensures that " { $snippet "m" } " is less than or equal to " { $snippet "m" } ", and that both indices are within bounds for " { $snippet "seq" } "." } +{ $description "Ensures that " { $snippet "from" } " is less than or equal to " { $snippet "to" } ", and that both indices are within bounds for " { $snippet "seq" } "." } { $errors "Throws a " { $link slice-error } " if the preconditions are not met." } ; HELP: collapse-slice -- 2.34.1