From fb3da7294cdf3153ddca5758cdc794a9b4d41a53 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 13 Mar 2020 08:32:44 +0800 Subject: [PATCH] mem: turn function comment into rustdoc Signed-off-by: Sean Cross --- kernel/src/mem.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/src/mem.rs b/kernel/src/mem.rs index a05edbc3d..0d3917786 100644 --- a/kernel/src/mem.rs +++ b/kernel/src/mem.rs @@ -232,15 +232,14 @@ impl MemoryManager { Err(xous::Error::OutOfMemory) } - // Find a virtual address in the current process that is big enough - // to fit `size` bytes. + /// Find a virtual address in the current process that is big enough + /// to fit `size` bytes. fn find_virtual_address(&mut self, virt_ptr: *mut usize, size: usize) -> Result { // If we were supplied a perfectly good address, return that. if virt_ptr as usize != 0 { return Ok(virt_ptr as usize); } - // let mm = SystemServicesHandle::get().current_process(); Err(xous::Error::BadAddress) }