Fixed deprecation warning text for mem::move_val_init and its associated comment.

This commit is contained in:
Sergio Benitez 2014-05-27 14:15:34 -04:00
parent 746d086f93
commit ac833da183

View File

@ -160,9 +160,9 @@ pub unsafe fn overwrite<T>(dst: *mut T, src: T) {
intrinsics::move_val_init(&mut *dst, src)
}
/// Deprecated, use move_val_init() instead
/// Deprecated, use `overwrite` instead
#[inline]
#[deprecated = "this function has been renamed to move_val_init()"]
#[deprecated = "this function has been renamed to `overwrite`"]
pub unsafe fn move_val_init<T>(dst: &mut T, src: T) {
overwrite(dst, src)
}