about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-02-09 02:27:58 +0000
committerbors <bors@rust-lang.org>2016-02-09 02:27:58 +0000
commit1cff753f466ce8d1284c61e3965b8f3d65120758 (patch)
treec9d973845c84f7ee38ec8249428a488e6fbc9ef8 /src/libstd/sys/unix/stack_overflow.rs
parent75271d8f1ad12ff8b9e97c4df1c94e7b3911e485 (diff)
parent5089b43b4560043150b88e6de1ee98eabf0bf11d (diff)
downloadrust-1cff753f466ce8d1284c61e3965b8f3d65120758.tar.gz
rust-1cff753f466ce8d1284c61e3965b8f3d65120758.zip
Auto merge of #31500 - steveklabnik:fix_cow, r=alexcrichton
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