Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Dec 21, 2024
1 parent d8917a4 commit abd3db0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Data/SBV/String.hs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ init s
| True
= subStr s 0 (length s - 1)

-- | @`singleton` c@ is the string of length 1 that contains the only character
-- whose value is the 8-bit value @c@.
-- | @`singleton` c@ is the string of length 1 that contains the only character @c@.
--
-- >>> prove $ \c -> c .== literal 'A' .=> singleton c .== "A"
-- Q.E.D.
Expand All @@ -141,7 +140,7 @@ singleton = lift1 StrUnit (Just wrap)
strToStrAt :: SString -> SInteger -> SString
strToStrAt s offset = subStr s offset 1

-- | @`strToCharAt` s i@ is the 8-bit value stored at location @i@. Unspecified if
-- | @`strToCharAt` s i@ is the character stored at location @i@. Unspecified if
-- index is out of bounds.
--
-- >>> prove $ \i -> i .>= 0 .&& i .<= 4 .=> "AAAAA" `strToCharAt` i .== literal 'A'
Expand Down

0 comments on commit abd3db0

Please sign in to comment.