diff options
| author | William Chargin <wchargin@gmail.com> | 2019-09-08 14:03:09 -0700 |
|---|---|---|
| committer | William Chargin <wchargin@gmail.com> | 2019-09-08 14:12:56 -0700 |
| commit | 9bf577311473aa0accbf0d456cbd26b7530b200f (patch) | |
| tree | 2428be140327613392a3c29dd00d83fc888efd0e /src/test/debuginfo/enum-thinlto.rs | |
| parent | 2b8116dced2c6c5d02e1c4359e89dc0919d6001b (diff) | |
| download | rust-9bf577311473aa0accbf0d456cbd26b7530b200f.tar.gz rust-9bf577311473aa0accbf0d456cbd26b7530b200f.zip | |
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
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
