1
Fork 0

Rollup merge of #67825 - petertodd:2020-mem-take-grammar, r=steveklabnik

Minor: change take() docs grammar to match other docs

Eg. mem::replace()
This commit is contained in:
Yuki Okushi 2020-01-03 17:56:33 +09:00 committed by GitHub
commit 14c96ce48c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
///