From 4792ec41b13cb4e8df433a8adef3a12162ef5370 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 26 Jun 2019 21:08:08 +0200 Subject: [PATCH] Adjust comments to be equal with post --- src/main.rs | 2 +- tests/heap_allocation.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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();