rust/src/libstd
Mazdak Farrokhzad 7894bc82d7
Rollup merge of #64294 - wchargin:wchargin-stdio-piped-docs, r=Dylan-DPC
Fix `Stdio::piped` example code and lint

Summary:
Invoking `rev` does not add a trailing newline when none is present in
the input (at least on my Debian). Nearby examples use `echo` rather
than `rev`, which probably explains the source of the discrepancy.

Also, a `mut` qualifier is unused.

Test Plan:
Copy the code block into <https://play.rust-lang.org> with a `fn main`
wrapper, and run it. Note that it compiles and runs cleanly; prior to
this commit, it would emit an `unused_mut` warning and then panic.

wchargin-branch: stdio-piped-docs
2019-09-23 00:36:33 +02:00
..
collections Add the Layout of the failed allocation to TryReserveError::AllocError 2019-08-16 18:08:37 +02:00
ffi Rollup merge of #64203 - alexreg:rush-pr-2, r=centril 2019-09-14 16:42:22 +02:00
io Fix inconsistent link formatting 2019-09-16 20:02:36 +08:00
net VxWorks ignores the SO_SNDTIMEO socket option (this is long-standing 2019-08-22 15:26:52 -07:00
os Handle cfg(bootstrap) throughout 2019-08-14 05:39:53 -04:00
prelude Remove __rust_unstable_column 2019-08-15 22:58:57 +03:00
sync Update sync condvar doc style 2019-08-31 23:09:37 +08:00
sys Merge pull request #25 from Wind-River/stat 2019-09-20 16:20:29 -07:00
sys_common avoid #[cfg] in favor of cfg! 2019-09-16 16:37:44 +02:00
tests Upgrade rand to 0.7 2019-09-06 14:45:28 +02:00
thread rename the crate, not the feature 2019-09-14 12:12:32 +02:00
alloc.rs Fix intra-doc link resolution failure on re-exporting libstd 2019-05-04 23:48:57 +09:00
ascii.rs Remove licenses 2018-12-25 21:08:33 -07:00
backtrace.rs rename the crate, not the feature 2019-09-14 12:12:32 +02:00
build.rs rename the crate, not the feature 2019-09-14 12:12:32 +02:00
Cargo.toml rename the crate, not the feature 2019-09-14 12:12:32 +02:00
env.rs A few cosmetic improvements to code & comments in liballoc and libcore 2019-09-06 16:02:25 +01:00
error.rs Rollup merge of #64203 - alexreg:rush-pr-2, r=centril 2019-09-14 16:42:22 +02:00
f32.rs Rollup merge of #63698 - Phosphorus15:master, r=nagisa 2019-08-27 08:17:49 +02:00
f64.rs Rollup merge of #63698 - Phosphorus15:master, r=nagisa 2019-08-27 08:17:49 +02:00
fs.rs Rollup merge of #63872 - marmistrz:readdir, r=jonas-schievink 2019-09-15 19:35:58 +02:00
future.rs Hide gen_future API from documentation 2019-06-04 19:22:30 +02:00
keyword_docs.rs Rollup merge of #62957 - dns2utf8:doc_loop_keyword, r=GuillaumeGomez 2019-08-30 23:07:57 +02:00
lib.rs Auto merge of #64154 - alexcrichton:std-backtrace, r=sfackler 2019-09-11 14:46:08 +00:00
macros.rs Remove __rust_unstable_column 2019-08-15 22:58:57 +03:00
memchr.rs libstd => 2018 2019-02-28 04:06:15 +09:00
num.rs Reexport IntErrorKind in std 2019-04-23 00:15:43 +02:00
panic.rs HashMap is UnwindSafe 2019-07-02 16:01:06 +02:00
panicking.rs avoid #[cfg] in favor of cfg! 2019-09-16 16:37:44 +02:00
path.rs Rollup merge of #61969 - MikailBag:master, r=Centril 2019-08-11 15:18:38 -04:00
primitive_docs.rs Update occurences of as_slice 2019-08-22 16:16:22 -03:00
process.rs Rollup merge of #64294 - wchargin:wchargin-stdio-piped-docs, r=Dylan-DPC 2019-09-23 00:36:33 +02:00
rt.rs rename the crate, not the feature 2019-09-14 12:12:32 +02:00
time.rs Rollup merge of #63846 - DevQps:32626-document-time-system-calls, r=rkruppe 2019-09-14 16:42:19 +02:00