[commit: ghc] master: Fix documentation for setByteArray# (082936d)
git at git.haskell.org
git at git.haskell.org
Thu Feb 9 02:25:42 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/082936d98a619e8f7a95c7762fb40fae04c99db5/ghc
>---------------------------------------------------------------
commit 082936d98a619e8f7a95c7762fb40fae04c99db5
Author: Ben Gamari <ben at smart-cactus.org>
Date: Wed Feb 8 18:55:32 2017 -0500
Fix documentation for setByteArray#
The documentation was previously unusably incomplete.
>---------------------------------------------------------------
082936d98a619e8f7a95c7762fb40fae04c99db5
compiler/prelude/primops.txt.pp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp
index 533d198..f1ee3b3 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 }
More information about the ghc-commits
mailing list