summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@mit.edu>2011-01-18 22:18:34 +0000
committerEdward Z. Yang <ezyang@mit.edu>2011-01-18 22:18:34 +0000
commit5ddec4452428b67788dd323d38563e8123253005 (patch)
tree6be9e817c540caa78c9c1b92dd8495cafcc3cd8b
parent701cf5711388f44acc778bdce4262a2d7ac7f039 (diff)
downloadhaskell-5ddec4452428b67788dd323d38563e8123253005.tar.gz
Fix documentation bug: newArray# accepts word count, not byte count.
-rw-r--r--compiler/prelude/primops.txt.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp
index c5dad9bf76..3747b54aa5 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