diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-07-03 16:11:00 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-07-03 16:11:00 -0700 |
| commit | debb7e4641af2ea71cf8733b3f071d614803dcbd (patch) | |
| tree | 3c087869d79d340300a1383b95b994b2fce43517 /src/libstd/c_vec.rs | |
| parent | 7259195caff1fdcce6266e6ecf51c0fd614e041f (diff) | |
Switch 'native' to 'extern' (or 'foreign' in some descriptions)
Diffstat (limited to 'src/libstd/c_vec.rs')
| -rw-r--r-- | src/libstd/c_vec.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/c_vec.rs b/src/libstd/c_vec.rs index 02ed63981b9..258bc432da1 100644 --- a/src/libstd/c_vec.rs +++ b/src/libstd/c_vec.rs @@ -32,7 +32,7 @@ export len; export ptr; #[doc = " -The type representing a native chunk of memory +The type representing a foreign chunk of memory Wrapped in a enum for opacity; FIXME #818 when it is possible to have truly opaque types, this should be revisited. @@ -57,11 +57,11 @@ class dtor_res { */ #[doc = " -Create a `c_vec` from a native buffer with a given length. +Create a `c_vec` from a foreign buffer with a given length. # Arguments -* base - A native pointer to a buffer +* base - A foreign pointer to a buffer * len - The number of elements in the buffer "] unsafe fn c_vec<T>(base: *mut T, len: uint) -> c_vec<T> { @@ -73,12 +73,12 @@ unsafe fn c_vec<T>(base: *mut T, len: uint) -> c_vec<T> { } #[doc = " -Create a `c_vec` from a native buffer, with a given length, +Create a `c_vec` from a foreign buffer, with a given length, and a function to run upon destruction. # Arguments -* base - A native pointer to a buffer +* base - A foreign pointer to a buffer * len - The number of elements in the buffer * dtor - A function to run when the value is destructed, useful for freeing the buffer, etc. |
