Skip to content

Commit b19bd1b

Browse files
authored
Rollup merge of rust-lang#140564 - ebkalderon:use-present-indicative-in-std-io-pipe-docs, r=tgross35
Use present indicative tense in std::io::pipe() API docs The inline documentation for all other free functions in the `std::io` module use the phrase "creates a" instead of "create a", except for the currently nightly-only `std::io::pipe()` function. This commit updates the text to align with the predominant wording in the `std::io` module. I recognize this PR is quite a minuscule nitpick, so feel free to ignore and close if you disagree and/or there are bigger fish to fry. Thanks in advance! :smile: Relates to rust-lang#127154.
2 parents a46b711 + 17d74d6 commit b19bd1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/io/pipe.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::io;
22
use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
33
use crate::sys_common::{FromInner, IntoInner};
44

5-
/// Create an anonymous pipe.
5+
/// Creates an anonymous pipe.
66
///
77
/// # Behavior
88
///
@@ -108,7 +108,7 @@ impl IntoInner<AnonPipe> for PipeWriter {
108108
}
109109

110110
impl PipeReader {
111-
/// Create a new [`PipeReader`] instance that shares the same underlying file description.
111+
/// Creates a new [`PipeReader`] instance that shares the same underlying file description.
112112
///
113113
/// # Examples
114114
///
@@ -167,7 +167,7 @@ impl PipeReader {
167167
}
168168

169169
impl PipeWriter {
170-
/// Create a new [`PipeWriter`] instance that shares the same underlying file description.
170+
/// Creates a new [`PipeWriter`] instance that shares the same underlying file description.
171171
///
172172
/// # Examples
173173
///

0 commit comments

Comments
 (0)