From 30b16c3b904af99e0041b06e6de788318cc79c66 Mon Sep 17 00:00:00 2001 From: Jonathan Knowles Date: Tue, 16 Jul 2019 06:35:13 +0000 Subject: [PATCH] Fix broken comment in function `splitAtLastOccurrence`. --- lib/text-class/src/Data/Text/Class.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/text-class/src/Data/Text/Class.hs b/lib/text-class/src/Data/Text/Class.hs index ff19e6f46b1..be605ce3903 100644 --- a/lib/text-class/src/Data/Text/Class.hs +++ b/lib/text-class/src/Data/Text/Class.hs @@ -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