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/libcore/str.rs | |
| parent | 7259195caff1fdcce6266e6ecf51c0fd614e041f (diff) | |
| download | rust-debb7e4641af2ea71cf8733b3f071d614803dcbd.tar.gz rust-debb7e4641af2ea71cf8733b3f071d614803dcbd.zip | |
Switch 'native' to 'extern' (or 'foreign' in some descriptions)
Diffstat (limited to 'src/libcore/str.rs')
| -rw-r--r-- | src/libcore/str.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 3618772027e..b87a575fdef 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -106,7 +106,7 @@ export extensions; #[abi = "cdecl"] -native mod rustrt { +extern mod rustrt { fn rust_str_push(&s: str, ch: u8); fn str_reserve_shared(&ss: str, nn: libc::size_t); } @@ -1585,7 +1585,7 @@ const tag_six_b: uint = 252u; #[doc = " Work with the byte buffer of a string. -Allows for unsafe manipulation of strings, which is useful for native +Allows for unsafe manipulation of strings, which is useful for foreign interop. # Example @@ -1604,7 +1604,7 @@ pure fn as_bytes<T>(s: str, f: fn(~[u8]) -> T) -> T { #[doc = " Work with the byte buffer of a string. -Allows for unsafe manipulation of strings, which is useful for native +Allows for unsafe manipulation of strings, which is useful for foreign interop. "] pure fn as_buf<T>(s: str, f: fn(*u8) -> T) -> T { @@ -1614,7 +1614,7 @@ pure fn as_buf<T>(s: str, f: fn(*u8) -> T) -> T { #[doc = " Work with the byte buffer of a string as a null-terminated C string. -Allows for unsafe manipulation of strings, which is useful for native +Allows for unsafe manipulation of strings, which is useful for foreign interop, without copying the original string. # Example |
