summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-02-08 18:55:32 -0500
committerBen Gamari <ben@smart-cactus.org>2017-02-08 21:25:24 -0500
commit082936d98a619e8f7a95c7762fb40fae04c99db5 (patch)
treeb0478f4a8c5328896448bc3bf0808a4b87547bd4
parent41c7437e13494c548de83f10154ff35940748aaf (diff)
downloadhaskell-082936d98a619e8f7a95c7762fb40fae04c99db5.tar.gz
Fix documentation for setByteArray#
The documentation was previously unusably incomplete.
-rw-r--r--compiler/prelude/primops.txt.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp
index 533d198546..f1ee3b36b0 100644
--- a/compiler/prelude/primops.txt.pp
+++ b/compiler/prelude/primops.txt.pp
@@ -1440,7 +1440,8 @@ primop CopyAddrToByteArrayOp "copyAddrToByteArray#" GenPrimOp
primop SetByteArrayOp "setByteArray#" GenPrimOp
MutableByteArray# s -> Int# -> Int# -> Int# -> State# s -> State# s
- {Set the range of the MutableByteArray# to the specified character.}
+ {{\tt setByteArray# ba off len c} sets the byte range {\tt [off, off+len]} of
+ the {\tt MutableByteArray#} to the byte {\tt c}.}
with
has_side_effects = True
code_size = { primOpCodeSizeForeignCall + 4 }