]> gitweb.factorcode.org Git - factor.git/blobdiff - core/arrays/arrays-docs.factor
Remove stack effects from HELP: declarations.
[factor.git] / core / arrays / arrays-docs.factor
index 1220112bd75647492524d55864a5ca26f184e131..5cdfcd3a80ff4897054b04f5d2f4ae0265c3ed46 100644 (file)
@@ -45,7 +45,7 @@ ABOUT: "arrays"
 HELP: array
 { $description "The class of fixed-length arrays. See " { $link "syntax-arrays" } " for syntax and " { $link "arrays" } " for general information." } ;
 
-HELP: <array> ( n elt -- array )
+HELP: <array>
 { $values { "n" "a non-negative integer" } { "elt" "an initial element" } { "array" "a new array" } }
 { $description "Creates a new array with the given length and all elements initially set to " { $snippet "elt" } "." } ;
 
@@ -71,7 +71,7 @@ HELP: 4array
 { $values { "w" object } { "x" object } { "y" object } { "z" object } { "array" array } }
 { $description "Create a new array with four elements, with " { $snippet "w" } " appearing first." } ;
 
-HELP: resize-array ( n array -- new-array )
+HELP: resize-array
 { $values { "n" "a non-negative integer" } { "array" array } { "new-array" array } }
 { $description "Resizes the array to have a length of " { $snippet "n" } " elements. When making the array shorter, this word may either create a new array or modify the existing array in place. When making the array longer, this word always allocates a new array, filling remaining space with " { $link f } "." }
 { $side-effects "array" } ;