Skip to content

Commit 14c96ce

Browse files
authored
Rollup merge of #67825 - petertodd:2020-mem-take-grammar, r=steveklabnik
Minor: change take() docs grammar to match other docs Eg. mem::replace()
2 parents 39a68a1 + 4a48818 commit 14c96ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
557557
}
558558
}
559559

560-
/// Replace `dest` with the default value of `T`, and return the previous `dest` value.
560+
/// Replaces `dest` with the default value of `T`, returning the previous `dest` value.
561561
///
562562
/// # Examples
563563
///

0 commit comments

Comments
 (0)