text icon indicating copy to clipboard operation
text copied to clipboard

Documentation of toTitle needs update

Open glchapman opened this issue 4 years ago • 1 comments

It appears the change proposed in issue 167 got committed so that title-casing only takes place after spaces. However, the documentation still reads: "The first letter of the input is converted to title case, as is every subsequent letter that immediately follows a non-letter".

glchapman avatar Jul 06 '20 23:07 glchapman

I think the easiest thing to do is to quote in haddocks a reference (but slow) impementation of toTitle: https://github.com/haskell/text/blob/02ee6771165e883eda516d61eb96c8156f6b7bb8/tests/Tests/Properties/Text.hs#L142-L148

Bodigrim avatar May 18 '22 19:05 Bodigrim