Skip to content

Commit

Permalink
Fix broken comment in function splitAtLastOccurrence.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles authored and paweljakubas committed Jul 16, 2019
1 parent 0eceb9e commit 30b16c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/text-class/src/Data/Text/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ showT = T.unpack . toText

-- | Splits the given 'Text' into a prefix and a suffix using the last
-- occurrence of the specified separator character as a splitting point.
-- Evaluates to 'Nothing' if the 'ByteString` does not contain the separator
-- character.
-- Evaluates to 'Nothing' if the specified 'Text' does not contain the
-- separator character.
splitAtLastOccurrence :: Char -> Text -> Maybe (Text, Text)
splitAtLastOccurrence c s
| isNothing (T.find (== c) s) = Nothing
Expand Down

0 comments on commit 30b16c3

Please sign in to comment.