Skip to content

Commit e17559c

Browse files
committed
Fix redundant word "the a" -> "a"
1 parent b8cac2c commit e17559c

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

Data/Vector.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,8 @@ unfoldr :: (b -> Maybe (a, b)) -> b -> Vector a
576576
unfoldr = G.unfoldr
577577

578578
-- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
579-
-- the generator function to the a seed. The generator function yields 'Just'
580-
-- the next element and the new seed or 'Nothing' if there are no more
581-
-- elements.
579+
-- the generator function to a seed. The generator function yields 'Just' the
580+
-- next element and the new seed or 'Nothing' if there are no more elements.
582581
--
583582
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
584583
unfoldrN :: Int -> (b -> Maybe (a, b)) -> b -> Vector a

Data/Vector/Generic.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,8 @@ unfoldr :: Vector v a => (b -> Maybe (a, b)) -> b -> v a
536536
unfoldr f = unstream . Bundle.unfoldr f
537537

538538
-- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
539-
-- the generator function to the a seed. The generator function yields 'Just'
540-
-- the next element and the new seed or 'Nothing' if there are no more
541-
-- elements.
539+
-- the generator function to a seed. The generator function yields 'Just' the
540+
-- next element and the new seed or 'Nothing' if there are no more elements.
542541
--
543542
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
544543
unfoldrN :: Vector v a => Int -> (b -> Maybe (a, b)) -> b -> v a

Data/Vector/Primitive.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,8 @@ unfoldr :: Prim a => (b -> Maybe (a, b)) -> b -> Vector a
494494
unfoldr = G.unfoldr
495495

496496
-- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
497-
-- the generator function to the a seed. The generator function yields 'Just'
498-
-- the next element and the new seed or 'Nothing' if there are no more
499-
-- elements.
497+
-- the generator function to a seed. The generator function yields 'Just' the
498+
-- next element and the new seed or 'Nothing' if there are no more elements.
500499
--
501500
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
502501
unfoldrN :: Prim a => Int -> (b -> Maybe (a, b)) -> b -> Vector a

Data/Vector/Storable.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,8 @@ unfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a
504504
unfoldr = G.unfoldr
505505

506506
-- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
507-
-- the generator function to the a seed. The generator function yields 'Just'
508-
-- the next element and the new seed or 'Nothing' if there are no more
509-
-- elements.
507+
-- the generator function to a seed. The generator function yields 'Just' the
508+
-- next element and the new seed or 'Nothing' if there are no more elements.
510509
--
511510
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
512511
unfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a

Data/Vector/Unboxed.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,8 @@ unfoldr :: Unbox a => (b -> Maybe (a, b)) -> b -> Vector a
474474
unfoldr = G.unfoldr
475475

476476
-- | /O(n)/ Construct a vector with at most @n@ elements by repeatedly applying
477-
-- the generator function to the a seed. The generator function yields 'Just'
478-
-- the next element and the new seed or 'Nothing' if there are no more
479-
-- elements.
477+
-- the generator function to a seed. The generator function yields 'Just' the
478+
-- next element and the new seed or 'Nothing' if there are no more elements.
480479
--
481480
-- > unfoldrN 3 (\n -> Just (n,n-1)) 10 = <10,9,8>
482481
unfoldrN :: Unbox a => Int -> (b -> Maybe (a, b)) -> b -> Vector a

0 commit comments

Comments
 (0)