@@ -42,7 +42,7 @@ import Data.String.Unsafe as Unsafe
4242import Data.Tuple (Tuple (..))
4343import Data.Unfoldable (unfoldr )
4444
45- -- | CodePoint is an Int bounded between 0 and 0x10FFFF, corresponding to
45+ -- | CodePoint is an ` Int` bounded between `0` and ` 0x10FFFF` , corresponding to
4646-- | Unicode code points.
4747newtype CodePoint = CodePoint Int
4848
@@ -67,7 +67,7 @@ instance boundedEnumCodePoint :: BoundedEnum CodePoint where
6767 | n >= 0 && n <= 0x10FFFF = Just (CodePoint n)
6868 | otherwise = Nothing
6969
70- -- | Creates a CodePoint from a given Char.
70+ -- | Creates a ` CodePoint` from a given ` Char` .
7171-- |
7272-- | ```purescript
7373-- | >>> codePointFromChar 'B'
@@ -178,7 +178,7 @@ codePointAtFallback n s = case uncons s of
178178 _ -> Nothing
179179
180180-- | Returns a record with the first code point and the remaining code points
181- -- | of the string. Returns Nothing if the string is empty. Operates in
181+ -- | of the string. Returns ` Nothing` if the string is empty. Operates in
182182-- | constant space and time.
183183-- |
184184-- | ```purescript
@@ -243,7 +243,7 @@ countTail p s accum = case uncons s of
243243 _ -> accum
244244
245245-- | Returns the number of code points preceding the first match of the given
246- -- | pattern in the string. Returns Nothing when no matches are found.
246+ -- | pattern in the string. Returns ` Nothing` when no matches are found.
247247-- |
248248-- | ```purescript
249249-- | >>> indexOf (Pattern "𝐀") "b 𝐀𝐀 c 𝐀"
@@ -257,7 +257,7 @@ indexOf p s = (\i -> length (CU.take i s)) <$> CU.indexOf p s
257257
258258-- | Returns the number of code points preceding the first match of the given
259259-- | pattern in the string. Pattern matches preceding the given index will be
260- -- | ignored. Returns Nothing when no matches are found.
260+ -- | ignored. Returns ` Nothing` when no matches are found.
261261-- |
262262-- | ```purescript
263263-- | >>> indexOf' (Pattern "𝐀") 4 "b 𝐀𝐀 c 𝐀"
@@ -272,7 +272,7 @@ indexOf' p i s =
272272 (\k -> i + length (CU .take k s')) <$> CU .indexOf p s'
273273
274274-- | Returns the number of code points preceding the last match of the given
275- -- | pattern in the string. Returns Nothing when no matches are found.
275+ -- | pattern in the string. Returns ` Nothing` when no matches are found.
276276-- |
277277-- | ```purescript
278278-- | >>> lastIndexOf (Pattern "𝐀") "b 𝐀𝐀 c 𝐀"
@@ -292,7 +292,7 @@ lastIndexOf p s = (\i -> length (CU.take i s)) <$> CU.lastIndexOf p s
292292-- | greater than the number of code points in the string is equivalent to
293293-- | searching in the whole string.
294294-- |
295- -- | Returns Nothing when no matches are found.
295+ -- | Returns ` Nothing` when no matches are found.
296296-- |
297297-- | ```purescript
298298-- | >>> lastIndexOf' (Pattern "𝐀") (-1) "b 𝐀𝐀 c 𝐀"
0 commit comments