Skip to content

Commit 04bb793

Browse files
committed
Fix wasm example
1 parent b3621da commit 04bb793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/wasm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub unsafe extern "C" fn page_alloc() -> *mut u8 {
2020
return ret as *mut u8;
2121
}
2222

23-
let ret = memory::grow(0, 1);
23+
let ret = memory_grow(0, 1);
2424

2525
// if we failed to allocate a page then return null
2626
if ret == -1 {
@@ -39,7 +39,7 @@ pub unsafe extern "C" fn page_free(page: *mut u8) {
3939

4040
#[no_mangle]
4141
pub unsafe extern "C" fn memory_used() -> usize {
42-
(page_size() * (memory::size(0) as u32)) as usize
42+
(page_size() * (memory_size(0) as u32)) as usize
4343
}
4444

4545
fn page_size() -> u32 {

0 commit comments

Comments
 (0)