]> gitweb.factorcode.org Git - factor.git/commitdiff
sequences: Fix documentation
authorGiftpflanze <gifti@tools.wmflabs.org>
Mon, 11 Mar 2024 07:01:52 +0000 (08:01 +0100)
committerGiftpflanze <gifti@tools.wmflabs.org>
Mon, 11 Mar 2024 07:01:52 +0000 (08:01 +0100)
Arguments m and n do not exist in move and check-slice

core/sequences/sequences-docs.factor

index 24fe03909925f5bcfc8a0bec889c64836f203b65..1356cf7e78a10cb71ba2dcbdf640c3f6184b9739 100644 (file)
@@ -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