]> git.lizzy.rs Git - rust.git/commitdiff
Tweak wording of copy_nonoverlapping_memory to remove misleading 'allocated'.
authorHuon Wilson <dbau.pp+github@gmail.com>
Wed, 11 Feb 2015 02:58:11 +0000 (13:58 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 11 Feb 2015 02:58:11 +0000 (13:58 +1100)
It doesn't have to be a literal memory allocation (ala malloc), e.g. it
can be in static memory, so saying "allocated" is mildly misleading.

src/libcore/intrinsics.rs

index 5562845e11d6f087342271866fae955ca30b3664..050c144b742994bf1d51dd8d57fc7286192b3f61 100644 (file)
@@ -262,11 +262,12 @@ pub struct TyDesc {
     ///
     /// # Safety
     ///
-    /// Beyond requiring that both regions of memory be allocated, it is Undefined Behaviour
-    /// for source and destination to overlap. Care must also be taken with the ownership of
-    /// `src` and `dst`. This method semantically moves the values of `src` into `dst`.
-    /// However it does not drop the contents of `dst`, or prevent the contents of `src`
-    /// from being dropped or used.
+    /// Beyond requiring that the program must be allowed to access both regions
+    /// of memory, it is Undefined Behaviour for source and destination to
+    /// overlap. Care must also be taken with the ownership of `src` and
+    /// `dst`. This method semantically moves the values of `src` into `dst`.
+    /// However it does not drop the contents of `dst`, or prevent the contents
+    /// of `src` from being dropped or used.
     ///
     /// # Examples
     ///