about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2019-03-29 09:30:08 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2019-03-29 11:50:41 -0700
commitb6fb3e34117008f7f97094b0f1521116a4e66473 (patch)
tree6b157ce90df8450313cee2b15d67d429bdd221b3 /src/libstd/sys/unix/stack_overflow.rs
parent2002b4b39a16760f37107cf02d7a91ff316d3073 (diff)
downloadrust-b6fb3e34117008f7f97094b0f1521116a4e66473.tar.gz
rust-b6fb3e34117008f7f97094b0f1521116a4e66473.zip
In doc examples, don't ignore read/write results
Calling `Read::read` or `Write::write` without checking the returned
`usize` value is almost always an error.  Example code in the
documentation should demonstrate how to use the return value correctly.
Otherwise, people might copy the example code thinking that it is okay
to "fire and forget" these methods.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions