rust/library/std/src/io
bors eaf6f46359 Auto merge of #87820 - elichai:patch-2, r=kennytm
Replace read_to_string with read_line in Stdin example

The current example results in infinitely reading from stdin, which can confuse newcomers trying to read from stdin.
(`@razmag` encountered this while learning the language from the docs)
2021-08-09 08:19:19 +00:00
..
buffered Rename feature gate bufwriter_into_parts from bufwriter_into_raw_parts 2021-07-29 15:23:32 +01:00
cursor Make some std::io functions const 2020-11-06 17:48:26 +01:00
error Add test for io::Error::new_const. 2021-03-21 20:22:26 +01:00
impls std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
stdio stdio_locked: updates based on feedback 2021-07-02 15:56:56 -05:00
util specialize io::copy to use the memory of the writer if it is a BufWriter 2021-01-31 14:58:03 +01:00
copy.rs library: Normalize safety-for-unsafe-block comments 2021-02-24 06:13:42 +01:00
cursor.rs Remove unstable Cursor::remaining 2021-07-02 16:23:44 +02:00
error.rs Auto merge of #79965 - ijackson:moreerrnos, r=joshtriplett 2021-07-03 04:12:36 +00:00
impls.rs Forwarding implementation for Seek trait's stream_position method 2021-06-07 19:21:22 -04:00
mod.rs Consistent spelling of "adapter" in the standard library 2021-07-30 17:23:07 +02:00
prelude.rs Use heading for std::prelude and not io::prelude 2021-01-05 17:52:24 -08:00
stdio.rs Replace read_to_string with read_line in Stdin example 2021-08-06 20:27:09 +03:00
tests.rs Stabilize Seek::rewind 2021-07-01 15:08:20 -07:00
util.rs impl Default, Copy, Clone for std::io::Sink and Empty 2021-06-30 11:58:25 +01:00