Skip to content

Commit 595847e

Browse files
authored
Fix docs for {D.B,D.B.Lazy}.{spanEnd,breakEnd} (#683)
1 parent 0816ae5 commit 595847e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Data/ByteString.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ breakByte c p = case elemIndex c p of
10721072
-- | Returns the longest (possibly empty) suffix of elements which __do not__
10731073
-- satisfy the predicate and the remainder of the string.
10741074
--
1075-
-- 'breakEnd' @p@ is equivalent to @'spanEnd' (not . p)@ and to @('takeWhileEnd' (not . p) &&& 'dropWhileEnd' (not . p))@.
1075+
-- 'breakEnd' @p@ is equivalent to @'spanEnd' (not . p)@ and to @('dropWhileEnd' (not . p) &&& 'takeWhileEnd' (not . p))@.
10761076
--
10771077
breakEnd :: (Word8 -> Bool) -> ByteString -> (ByteString, ByteString)
10781078
breakEnd p ps = splitAt (findFromEndUntil p ps) ps
@@ -1117,7 +1117,7 @@ spanByte c ps@(BS x l) =
11171117
-- | Returns the longest (possibly empty) suffix of elements
11181118
-- satisfying the predicate and the remainder of the string.
11191119
--
1120-
-- 'spanEnd' @p@ is equivalent to @'breakEnd' (not . p)@ and to @('takeWhileEnd' p &&& 'dropWhileEnd' p)@.
1120+
-- 'spanEnd' @p@ is equivalent to @'breakEnd' (not . p)@ and to @('dropWhileEnd' p &&& 'takeWhileEnd' p)@.
11211121
--
11221122
-- We have
11231123
--

Data/ByteString/Lazy.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ break f = break'
989989
-- | Returns the longest (possibly empty) suffix of elements which __do not__
990990
-- satisfy the predicate and the remainder of the string.
991991
--
992-
-- 'breakEnd' @p@ is equivalent to @'spanEnd' (not . p)@ and to @('takeWhileEnd' (not . p) &&& 'dropWhileEnd' (not . p))@.
992+
-- 'breakEnd' @p@ is equivalent to @'spanEnd' (not . p)@ and to @('dropWhileEnd' (not . p) &&& 'takeWhileEnd' (not . p))@.
993993
--
994994
-- @since 0.11.2.0
995995
breakEnd :: (Word8 -> Bool) -> ByteString -> (ByteString, ByteString)
@@ -1059,7 +1059,7 @@ span p = break (not . p)
10591059
-- | Returns the longest (possibly empty) suffix of elements
10601060
-- satisfying the predicate and the remainder of the string.
10611061
--
1062-
-- 'spanEnd' @p@ is equivalent to @'breakEnd' (not . p)@ and to @('takeWhileEnd' p &&& 'dropWhileEnd' p)@.
1062+
-- 'spanEnd' @p@ is equivalent to @'breakEnd' (not . p)@ and to @('dropWhileEnd' p &&& 'takeWhileEnd' p)@.
10631063
--
10641064
-- We have
10651065
--

0 commit comments

Comments
 (0)