[SR-12935] String initializer docs emphasize failure over repair #55381
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 6a8401dc68126b963aea8e1853f4d4c0
Issue Description:
Almost anywhere you go in the docs looking to construct a `String` from UTF8, you run into a list like this. The initializer most people want, most of the time, is the last one, but nobody is going to jump on that, especially if they have a `Data`. Furthermore, even if you were to click through to the docs for the last initializer, it doesn't tell you what happens if there is an encoding error!. Having seen all the other ones, I'd be afraid to use this initializer.
The text was updated successfully, but these errors were encountered: