From 79578c9aa060e58841af8ed5952be9f588979be9 Mon Sep 17 00:00:00 2001 From: Ruihan Li Date: Thu, 1 Aug 2024 09:45:50 +0800 Subject: [PATCH] Use the plural form in `# Panic` --- ostd/src/mm/io.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ostd/src/mm/io.rs b/ostd/src/mm/io.rs index eb7d4652d..78fd0382b 100644 --- a/ostd/src/mm/io.rs +++ b/ostd/src/mm/io.rs @@ -461,7 +461,7 @@ impl<'a, Space> VmReader<'a, Space> { /// Skips the first `nbytes` bytes of data. /// The length of remaining data is decreased accordingly. /// - /// # Panic + /// # Panics /// /// If `nbytes` is greater than `self.remain()`, then the method panics. pub fn skip(mut self, nbytes: usize) -> Self { @@ -557,7 +557,7 @@ impl<'a> VmWriter<'a, KernelSpace> { /// /// Returns the number of values written. /// - /// # Panic + /// # Panics /// /// The size of the available space must be a multiple of the size of `value`. /// Otherwise, the method would panic. @@ -650,7 +650,7 @@ impl<'a, Space> VmWriter<'a, Space> { /// Skips the first `nbytes` bytes of data. /// The length of available space is decreased accordingly. /// - /// # Panic + /// # Panics /// /// If `nbytes` is greater than `self.avail()`, then the method panics. pub fn skip(mut self, nbytes: usize) -> Self {