diff --git a/src/main.rs b/src/main.rs index 5f2d1856..de7cc0f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! { } println!("vec at {:p}", vec.as_slice()); - // create a reference counted vector -> will be deallocated when count reaches 0 + // create a reference counted vector -> will be freed when count reaches 0 let reference_counted = Rc::new(vec![1, 2, 3]); let cloned_reference = reference_counted.clone(); println!( diff --git a/tests/heap_allocation.rs b/tests/heap_allocation.rs index a4548d9e..c803ba77 100644 --- a/tests/heap_allocation.rs +++ b/tests/heap_allocation.rs @@ -20,7 +20,6 @@ fn main(boot_info: &'static BootInfo) -> ! { blog_os::init(); let mut mapper = unsafe { memory::init(boot_info.physical_memory_offset) }; let mut frame_allocator = unsafe { BootInfoFrameAllocator::init(&boot_info.memory_map) }; - allocator::init_heap(&mut mapper, &mut frame_allocator).expect("heap initialization failed"); test_main();