File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Data/Vector/Algorithms Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ resizeVector !src !sz = do
115
115
pure dst
116
116
{-# inline resizeVector #-}
117
117
118
- -- Used inernally in resizeVector: copy a vector from a larger to
118
+ -- Used internally in resizeVector: copy a vector from a larger to
119
119
-- smaller vector. Should not be used if the source vector
120
120
-- is smaller than the target vector.
121
121
copyToSmaller
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ binarySearchRByBounds cmp vec e = binarySearchPBounds p vec
119
119
where p e' = case cmp e' e of GT -> True ; _ -> False
120
120
{-# INLINE binarySearchRByBounds #-}
121
121
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,
123
123
-- finds the first index at which the predicate returns True, or the length of
124
124
-- the array if the predicate is false for the entire array.
125
125
binarySearchP :: (PrimMonad m , MVector v e ) => (e -> Bool ) -> v (PrimState m ) e -> m Int
You can’t perform that action at this time.
0 commit comments