Skip to content

Commit

Permalink
Rollup merge of #67825 - petertodd:2020-mem-take-grammar, r=steveklabnik
Browse files Browse the repository at this point in the history
Minor: change take() docs grammar to match other docs

Eg. mem::replace()
  • Loading branch information
JohnTitor authored Jan 3, 2020
2 parents 39a68a1 + 4a48818 commit 14c96ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
}
}

/// Replace `dest` with the default value of `T`, and return the previous `dest` value.
/// Replaces `dest` with the default value of `T`, returning the previous `dest` value.
///
/// # Examples
///
Expand Down

0 comments on commit 14c96ce

Please sign in to comment.