Skip to content

Commit 75186c0

Browse files
authored
Rollup merge of #111582 - Vagelis-Prokopiou:fix/wanting, r=workingjubilee
(docs) Change "wanting" to "want" Changing " If you’re wanting" to "If you want". Wanting is not wrong, of course, but I think that "If you want" feels more natural to most readers.
2 parents 9d8c11b + 5fa8c4a commit 75186c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<()>
19461946
/// On success, the total number of bytes copied is returned and it is equal to
19471947
/// the length of the `to` file as reported by `metadata`.
19481948
///
1949-
/// If you’re wanting to copy the contents of one file to another and you’re
1949+
/// If you want to copy the contents of one file to another and you’re
19501950
/// working with [`File`]s, see the [`io::copy()`] function.
19511951
///
19521952
/// # Platform-specific behavior

library/std/src/io/copy.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::mem::MaybeUninit;
1010
/// On success, the total number of bytes that were copied from
1111
/// `reader` to `writer` is returned.
1212
///
13-
/// If you’re wanting to copy the contents of one file to another and you’re
13+
/// If you want to copy the contents of one file to another and you’re
1414
/// working with filesystem paths, see the [`fs::copy`] function.
1515
///
1616
/// [`fs::copy`]: crate::fs::copy

0 commit comments

Comments
 (0)