Fix broken link in documentation

This commit is contained in:
Jianfeng Jiang 2024-05-23 03:25:24 +00:00 committed by Tate, Hongliang Tian
parent 6cf28751c6
commit e192579405
2 changed files with 3 additions and 1 deletions

View File

@ -127,6 +127,8 @@ impl VmSpace {
/// Query about the mapping information about a byte in virtual memory.
/// This is more handy than [`query_range`], but less efficient if you want
/// to query in a batch.
///
/// [`query_range`]: VmSpace::query_range
pub fn query(&self, vaddr: Vaddr) -> Result<Option<PageProperty>> {
if !(0..MAX_USERSPACE_VADDR).contains(&vaddr) {
return Err(Error::AccessDenied);

View File

@ -160,7 +160,7 @@ impl !Sync for Waiter {}
/// A waker that can wake up the associated [`Waiter`].
///
/// A waker can be created by calling [`Waiter::new`]. This method creates an `Arc<Waker>` that can
/// A waker can be created by calling [`Waiter::new_pair`]. This method creates an `Arc<Waker>` that can
/// be used across different threads.
pub struct Waker {
has_woken: AtomicBool,