diff options
author | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2020-10-30 05:28:30 -0400 |
---|---|---|
committer | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2020-10-30 05:28:30 -0400 |
commit | 9902d9ec95dfc3ddb3e8a703de6b000c3ac3871a (patch) | |
tree | 2b71787588e7f439f03b453ca5e119f9b9130688 | |
parent | 7f8be3eb3440a152246a1aef7b4020be4c03cf2e (diff) | |
download | haskell-9902d9ec95dfc3ddb3e8a703de6b000c3ac3871a.tar.gz |
[skip ci] Fix typo in `callocBytes` haddock.
-rw-r--r-- | libraries/base/Foreign/Marshal/Alloc.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Foreign/Marshal/Alloc.hs b/libraries/base/Foreign/Marshal/Alloc.hs index c32f0b62d7..e04933419b 100644 --- a/libraries/base/Foreign/Marshal/Alloc.hs +++ b/libraries/base/Foreign/Marshal/Alloc.hs @@ -99,7 +99,7 @@ calloc = callocBytes (sizeOf (undefined :: a)) mallocBytes :: Int -> IO (Ptr a) mallocBytes size = failWhenNULL "malloc" (_malloc (fromIntegral size)) --- |Llike 'mallocBytes' but memory is filled with bytes of value zero. +-- |Like 'mallocBytes', but memory is filled with bytes of value zero. -- callocBytes :: Int -> IO (Ptr a) callocBytes size = failWhenNULL "calloc" $ _calloc 1 (fromIntegral size) |