copyBytes copies bytes, not elements; fixes trac #1203
authorIan Lynagh <igloo@earth.li>
Mon, 12 Mar 2007 11:35:55 +0000 (11:35 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 12 Mar 2007 11:35:55 +0000 (11:35 +0000)
Foreign/Marshal/Utils.hs

index f1071f9..4e03055 100644 (file)
@@ -161,7 +161,7 @@ withMany withFoo (x:xs) f = withFoo x $ \x' ->
 copyBytes               :: Ptr a -> Ptr a -> Int -> IO ()
 copyBytes dest src size  = memcpy dest src (fromIntegral size)
 
--- |Copies the given number of elements from the second area (source) into the
+-- |Copies the given number of bytes from the second area (source) into the
 -- first (destination); the copied areas /may/ overlap
 --
 moveBytes               :: Ptr a -> Ptr a -> Int -> IO ()