From 5ddec4452428b67788dd323d38563e8123253005 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 18 Jan 2011 22:18:34 +0000 Subject: [PATCH] Fix documentation bug: newArray# accepts word count, not byte count. --- compiler/prelude/primops.txt.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp index c5dad9b..3747b54 100644 --- a/compiler/prelude/primops.txt.pp +++ b/compiler/prelude/primops.txt.pp @@ -578,7 +578,7 @@ primtype MutableArray# s a primop NewArrayOp "newArray#" GenPrimOp Int# -> a -> State# s -> (# State# s, MutableArray# s a #) - {Create a new mutable array of specified size (in bytes), + {Create a new mutable array of specified size (in words), in the specified state thread, with each element containing the specified initial value.} with -- 1.7.10.4