Skip to content

Commit

Permalink
Tweak wording of copy_nonoverlapping_memory to remove misleading 'all…
Browse files Browse the repository at this point in the history
…ocated'.

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.
  • Loading branch information
huonw committed Feb 11, 2015
1 parent a954663 commit d8d3761
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/libcore/intrinsics.rs
Expand Up @@ -262,11 +262,12 @@ extern "rust-intrinsic" {
///
/// # 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
///
Expand Down

0 comments on commit d8d3761

Please sign in to comment.