Skip to content

Commit 6ea5877

Browse files
Indicate that C reference are C reference (#357)
1 parent 784685c commit 6ea5877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unchecked-uninit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ us to assign bytes to a location in memory without dropping the old value:
9898
* `ptr::write(ptr, val)` takes a `val` and moves it into the address pointed
9999
to by `ptr`.
100100
* `ptr::copy(src, dest, count)` copies the bits that `count` T's would occupy
101-
from src to dest. (this is equivalent to memmove -- note that the argument
101+
from src to dest. (this is equivalent to C's memmove -- note that the argument
102102
order is reversed!)
103103
* `ptr::copy_nonoverlapping(src, dest, count)` does what `copy` does, but a
104104
little faster on the assumption that the two ranges of memory don't overlap.
105-
(this is equivalent to memcpy -- note that the argument order is reversed!)
105+
(this is equivalent to C's memcpy -- note that the argument order is reversed!)
106106

107107
It should go without saying that these functions, if misused, will cause serious
108108
havoc or just straight up Undefined Behavior. The only things that these

0 commit comments

Comments
 (0)