Skip to content

Commit

Permalink
Merge pull request #3734 from mheinzel/lib-documentation-typos
Browse files Browse the repository at this point in the history
Fix typos etc. in String docs
  • Loading branch information
Ahmad Salim Al-Sibahi authored Apr 4, 2017
2 parents e421169 + d52f83a commit e019840
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/prelude/Prelude/Strings.idr
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ foldl1 f (x::xs) = foldl f x xs
(++) = prim__concat

||| A preallocated buffer for building a String. This allows a function (in IO)
||| to allocate enough space for a stirng which will be build from smaller
||| to allocate enough space for a string which will be built from smaller
||| pieces without having to allocate at every step.
||| To build a string using a `StringBuffer`, see `newStringBuffer`,
||| `addToStringBuffer` and `getStringFromBuffer`.
Expand Down Expand Up @@ -247,7 +247,7 @@ break p = span (not . p)
split : (Char -> Bool) -> String -> List String
split p xs = map pack (split p (unpack xs))

||| Removes whitespace (determined with 'isSpace') from
||| Removes whitespace (determined by 'isSpace') from
||| the start of the string.
|||
||| ```idris example
Expand All @@ -262,7 +262,7 @@ ltrim xs with (strM xs)
ltrim (strCons x xs) | StrCons _ _
= if (isSpace x) then assert_total (ltrim xs) else (strCons x xs)

||| Removes whitespace (determined with 'isSpace') from
||| Removes whitespace (determined by 'isSpace') from
||| the start and end of the string.
|||
||| ```idris example
Expand Down Expand Up @@ -371,7 +371,7 @@ toLower x with (strM x)
||| Uppercases all characters in the string.
|||
||| ```idris example
||| toLower "aBc12!"
||| toUpper "aBc12!"
||| ```
toUpper : String -> String
toUpper x with (strM x)
Expand Down

0 comments on commit e019840

Please sign in to comment.