about summary refs log tree commit diff
path: root/library/stdarch/examples/wasm.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-12-12 12:41:24 -0800
committerAlex Crichton <alex@alexcrichton.com>2018-12-12 12:41:24 -0800
commit0e1658b014cdd3112a6aa86a2354d8cef9d37235 (patch)
tree06c155fc4fd41d92cfbf46bb6fb44d9c2a008f51 /library/stdarch/examples/wasm.rs
parentf5c276bf2ba723d6c65bf1101d6083dca93c5751 (diff)
downloadrust-0e1658b014cdd3112a6aa86a2354d8cef9d37235.tar.gz
rust-0e1658b014cdd3112a6aa86a2354d8cef9d37235.zip
Fix wasm example
Diffstat (limited to 'library/stdarch/examples/wasm.rs')
-rw-r--r--library/stdarch/examples/wasm.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/stdarch/examples/wasm.rs b/library/stdarch/examples/wasm.rs
index 39ea93a410a..25218644d2a 100644
--- a/library/stdarch/examples/wasm.rs
+++ b/library/stdarch/examples/wasm.rs
@@ -20,7 +20,7 @@ pub unsafe extern "C" fn page_alloc() -> *mut u8 {
         return ret as *mut u8;
     }
 
-    let ret = memory::grow(0, 1);
+    let ret = memory_grow(0, 1);
 
     // if we failed to allocate a page then return null
     if ret == -1 {
@@ -39,7 +39,7 @@ pub unsafe extern "C" fn page_free(page: *mut u8) {
 
 #[no_mangle]
 pub unsafe extern "C" fn memory_used() -> usize {
-    (page_size() * (memory::size(0) as u32)) as usize
+    (page_size() * (memory_size(0) as u32)) as usize
 }
 
 fn page_size() -> u32 {