]> gitweb.factorcode.org Git - factor.git/commitdiff
specialized-arrays: fix stack effect of malloc-T-array in docs
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 20 Nov 2010 03:53:43 +0000 (19:53 -0800)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 20 Nov 2010 03:53:43 +0000 (19:53 -0800)
basis/specialized-arrays/specialized-arrays-docs.factor

index 722dff6d915c8cd0678dd2c78800682c35165663..4572a188a2dfe91abf03bef02c2ae0ca6e289877 100644 (file)
@@ -41,7 +41,7 @@ ARTICLE: "specialized-array-words" "Specialized array words"
     { { $snippet "T-array" } { "The class of arrays with elements of type " { $snippet "T" } } }
     { { $snippet "<T-array>" } { "Constructor for arrays with elements of type " { $snippet "T" } "; stack effect " { $snippet "( len -- array )" } } }
     { { $snippet "(T-array)" } { "Constructor for arrays with elements of type " { $snippet "T" } ", where the initial contents are uninitialized; stack effect " { $snippet "( len -- array )" } } }
-    { { $snippet "malloc-T-array" } { "Constructor for arrays with elements of type " { $snippet "T" } " backed by newly-allocated unmanaged memory; stack effect " { $snippet "( alien len -- array )" } } }
+    { { $snippet "malloc-T-array" } { "Constructor for arrays with elements of type " { $snippet "T" } " backed by newly-allocated, zeroed out, unmanaged memory; stack effect " { $snippet "( len -- array )" } } }
     { { $snippet "<direct-T-array>" } { "Constructor for arrays with elements of type " { $snippet "T" } " backed by raw memory; stack effect " { $snippet "( alien len -- array )" } } }
     { { $snippet "T-array-cast" } { "Converts a byte array into a specialized array by interpreting the bytes in as machine-specific values. Code which uses this word is unportable" } }
     { { $snippet ">T-array" } { "Converts a sequence into a specialized array of type " { $snippet "T" } "; stack effect " { $snippet "( seq -- array )" } } }