diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-02-08 17:10:55 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-02-08 17:10:55 -0500 |
| commit | 5089b43b4560043150b88e6de1ee98eabf0bf11d (patch) | |
| tree | 07e646aadf1a1a8dcafb0bfb4a906e118f843f54 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | efdde2479b3099b35b38a7445b5f09559e3f1fd0 (diff) | |
| download | rust-5089b43b4560043150b88e6de1ee98eabf0bf11d.tar.gz rust-5089b43b4560043150b88e6de1ee98eabf0bf11d.zip | |
Fix up docs for String::from_utf8_lossy()
When I last did a pass through the string documentation, I focused on consistency across similar functions. Unfortunately, I missed some details. This example was _too_ consistent: it wasn't actually accurate! This commit fixes the docs do both be more accurate and to explain why the return type is a Cow<'a, str>. First reported here: https://www.reddit.com/r/rust/comments/44q9ms/stringfrom_utf8_lossy_doesnt_return_a_string/
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
