File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 2020//!
2121//! # Read and Write
2222//!
23- //! Because they are traits, they're implemented by a number of other types,
24- //! and you can implement them for your types too. As such, you'll see a
25- //! few different types of I/O throughout the documentation in this module:
26- //! `File`s, `TcpStream`s, and sometimes even `Vec<T>`s. For example, `Read`
27- //! adds a `read()` method, which we can use on `File`s:
23+ //! Because they are traits, `Read` and `Write` are implemented by a number
24+ //! of other types, and you can implement them for your types too. As such,
25+ //! you'll see a few different types of I/O throughout the documentation in
26+ //! this module: `File`s, `TcpStream`s, and sometimes even `Vec<T>`s. For
27+ //! example, `Read` adds a `read()` method, which we can use on `File`s:
2828//!
2929//! ```
3030//! use std::io;
111111//! # }
112112//! ```
113113//!
114- //! `BufWriter` doesn't add any new ways of writing, it just buffers every call
114+ //! `BufWriter` doesn't add any new ways of writing; it just buffers every call
115115//! to [`write()`][write]:
116116//!
117117//! ```
165165//! # }
166166//! ```
167167//!
168- //! Of course, using `io::stdout()` directly is less comon than something like
168+ //! Of course, using `io::stdout()` directly is less common than something like
169169//! `println!`.
170170//!
171171//! ## Iterator types
You can’t perform that action at this time.
0 commit comments