Skip to content

Commit

Permalink
chore: fix some typos in comments (#491)
Browse files Browse the repository at this point in the history
Signed-off-by: luchenhan <hanluchen@aliyun.com>
  • Loading branch information
luchenhan committed May 3, 2024
1 parent b79f7ec commit 5d4226e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vector/src/Data/Vector/Generic/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class MVector (Mutable v) a => Vector v a where
--
-- > elemseq v x y = (singleton x `asTypeOf` v) `seq` y
--
-- Default defintion: @a@ is not evaluated at all.
-- Default definition: @a@ is not evaluated at all.
elemseq :: v a -> a -> b -> b

{-# INLINE elemseq #-}
Expand Down
2 changes: 1 addition & 1 deletion vector/src/Data/Vector/Storable/Mutable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ storableSetAsPrim n fp x _y = unsafeWithForeignPtr fp $ \ ptr -> do

{-
AFTER primitive 0.7 is pretty old, move to using setPtr. which is really
a confusing misnomer for whats often called memset (intialize)
a confusing misnomer for what's often called memset (initialize)
-}
-- Fill a memory block with the given value. The length is in
-- elements of type @a@ rather than in bytes.
Expand Down

0 comments on commit 5d4226e

Please sign in to comment.