]> git.lizzy.rs Git - rust.git/commitdiff
Fix doc comment for 'ptr::copy_to' method
authorZakarum <scareaangel@gmail.com>
Fri, 27 Jul 2018 12:26:57 +0000 (15:26 +0300)
committerZakarum <scareaangel@gmail.com>
Fri, 27 Jul 2018 12:26:57 +0000 (15:26 +0300)
src/libcore/ptr.rs

index be82ab44cd1fcbf3b00d40ce528652d0aebc223d..fe5914c72e1ac27c3760e64c26b6ec4824e4524b 100644 (file)
@@ -1162,8 +1162,8 @@ pub unsafe fn read_unaligned(self) -> T
     ///
     /// Care must be taken with the ownership of `self` and `dest`.
     /// This method semantically moves the values of `self` into `dest`.
-    /// However it does not drop the contents of `self`, or prevent the contents
-    /// of `dest` from being dropped or used.
+    /// However it does not drop the contents of `dest`, or prevent the contents
+    /// of `self` from being dropped or used.
     ///
     /// # Examples
     ///