Skip to content

Commit 0d82b8d

Browse files
Eric Lindbladerikd
authored andcommitted
Fix typos in comments
1 parent a8b985c commit 0d82b8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Data/Vector/Algorithms/Common.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ resizeVector !src !sz = do
115115
pure dst
116116
{-# inline resizeVector #-}
117117

118-
-- Used inernally in resizeVector: copy a vector from a larger to
118+
-- Used internally in resizeVector: copy a vector from a larger to
119119
-- smaller vector. Should not be used if the source vector
120120
-- is smaller than the target vector.
121121
copyToSmaller

src/Data/Vector/Algorithms/Search.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ binarySearchRByBounds cmp vec e = binarySearchPBounds p vec
119119
where p e' = case cmp e' e of GT -> True ; _ -> False
120120
{-# INLINE binarySearchRByBounds #-}
121121

122-
-- | Given a predicate that is guaraneteed to be monotone on the given vector,
122+
-- | Given a predicate that is guaranteed to be monotone on the given vector,
123123
-- finds the first index at which the predicate returns True, or the length of
124124
-- the array if the predicate is false for the entire array.
125125
binarySearchP :: (PrimMonad m, MVector v e) => (e -> Bool) -> v (PrimState m) e -> m Int

0 commit comments

Comments
 (0)