From cb8797a9b1f79382d55a6160d7440bda9e312803 Mon Sep 17 00:00:00 2001 From: Jaro Date: Wed, 5 Apr 2023 23:30:40 +0200 Subject: [PATCH] Fix typos in comments. --- src/Data/Text/ParagraphLayout/Internal/TextContainer.hs | 2 +- test/Data/Text/ParagraphLayout/ParagraphData.hs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Data/Text/ParagraphLayout/Internal/TextContainer.hs b/src/Data/Text/ParagraphLayout/Internal/TextContainer.hs index e1ec600..f20379d 100644 --- a/src/Data/Text/ParagraphLayout/Internal/TextContainer.hs +++ b/src/Data/Text/ParagraphLayout/Internal/TextContainer.hs @@ -55,7 +55,7 @@ instance SeparableTextContainer Text where -- | Treat a list of text containers as a contiguous sequence, -- and find all possible ways to split them into two non-empty lists, --- using the given function to find valit split offsets in `Data.Word.Word8` +-- using the given function to find valid split offsets in `Data.Word.Word8` -- units from the beginning of each container. -- -- The results in the form (prefix, suffix) will be ordered from the longest diff --git a/test/Data/Text/ParagraphLayout/ParagraphData.hs b/test/Data/Text/ParagraphLayout/ParagraphData.hs index 632d8e5..07b3cd9 100644 --- a/test/Data/Text/ParagraphLayout/ParagraphData.hs +++ b/test/Data/Text/ParagraphLayout/ParagraphData.hs @@ -58,7 +58,7 @@ ligatureParagraph = "" |< en "inefficient" >| "" manySpacesParagraph :: ParagraphOptions -> Paragraph manySpacesParagraph = " " |< zxx " aaaaaa aaaaaa aaaaaa aaaaaa " >| " " --- | Fillter text using the Arabic script. +-- | Filler text using the Arabic script. -- Source: arabicFillerParagraph :: ParagraphOptions -> Paragraph arabicFillerParagraph = "xxxx" |< zxx "إعلان بأيدي وبغطاء هذه من. عرض غينيا يتمكن واعتلاء في. و فرنسا الثانية وفي, أسر إذ السبب ارتكبها مليارات. فكان الشتاء، ما حتى, غير أن وصغار الأخذ. في الصفحة لهيمنة وتتحمّل وتم, أن أما وبداية الغالي." >| "z" @@ -66,7 +66,7 @@ arabicFillerParagraph = "xxxx" |< zxx "إعلان بأيدي وبغطاء هذه spannedArabicFillerParagraph :: ParagraphOptions -> Paragraph spannedArabicFillerParagraph = "xxxx" |< zxx "إعلان بأيدي وبغطاء " >|< zxx "هذه من. عرض" >|< zxx " غينيا يتمكن واعتلاء " >|< zxx "في. و فرنسا" >|< zxx " الثانية وفي, أسر " >|< zxx "إذ السبب ارتكبها" >|< zxx " مليارات. فكان الشتاء، " >|< zxx "ما حتى, غير" >|< zxx " أن وصغار الأخذ. " >|< zxx "في الصفحة لهيمنة" >|< zxx " وتتحمّل وتم, أن " >|< zxx "أما وبداية الغالي." >| "z" --- | Fillter text using the Latin script. +-- | Filler text using the Latin script. -- Source: loremIpsumParagraph :: ParagraphOptions -> Paragraph loremIpsumParagraph = "xxxx" |< zxx "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." >| "z" -- 2.30.2