diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-01 17:30:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-01 19:16:06 -0700 |
| commit | b355936b4da0831f47afe8f251daee503c8caa32 (patch) | |
| tree | 9f870e26f773af714cbcf7f315de5ff3722300c3 /src/libcore/rt.rs | |
| parent | dc499f193e473abc78c557feaa86969bbe7aa159 (diff) | |
| download | rust-b355936b4da0831f47afe8f251daee503c8caa32.tar.gz rust-b355936b4da0831f47afe8f251daee503c8caa32.zip | |
Convert ret to return
Diffstat (limited to 'src/libcore/rt.rs')
| -rw-r--r-- | src/libcore/rt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/rt.rs b/src/libcore/rt.rs index 8990891112d..0b4038656ef 100644 --- a/src/libcore/rt.rs +++ b/src/libcore/rt.rs @@ -34,7 +34,7 @@ fn rt_fail(expr: *c_char, file: *c_char, line: size_t) { #[rt(exchange_malloc)] fn rt_exchange_malloc(td: *c_char, size: uintptr_t) -> *c_char { - ret rustrt::rust_upcall_exchange_malloc(td, size); + return rustrt::rust_upcall_exchange_malloc(td, size); } // NB: Calls to free CANNOT be allowed to fail, as throwing an exception from @@ -47,7 +47,7 @@ fn rt_exchange_free(ptr: *c_char) { #[rt(malloc)] fn rt_malloc(td: *c_char, size: uintptr_t) -> *c_char { - ret rustrt::rust_upcall_malloc(td, size); + return rustrt::rust_upcall_malloc(td, size); } // NB: Calls to free CANNOT be allowed to fail, as throwing an exception from |
