Use the plural form in # Panic

This commit is contained in:
Ruihan Li
2024-08-01 09:45:50 +08:00
committed by Tate, Hongliang Tian
parent dee7734073
commit 79578c9aa0

View File

@ -461,7 +461,7 @@ impl<'a, Space> VmReader<'a, Space> {
/// Skips the first `nbytes` bytes of data. /// Skips the first `nbytes` bytes of data.
/// The length of remaining data is decreased accordingly. /// The length of remaining data is decreased accordingly.
/// ///
/// # Panic /// # Panics
/// ///
/// If `nbytes` is greater than `self.remain()`, then the method panics. /// If `nbytes` is greater than `self.remain()`, then the method panics.
pub fn skip(mut self, nbytes: usize) -> Self { pub fn skip(mut self, nbytes: usize) -> Self {
@ -557,7 +557,7 @@ impl<'a> VmWriter<'a, KernelSpace> {
/// ///
/// Returns the number of values written. /// Returns the number of values written.
/// ///
/// # Panic /// # Panics
/// ///
/// The size of the available space must be a multiple of the size of `value`. /// The size of the available space must be a multiple of the size of `value`.
/// Otherwise, the method would panic. /// Otherwise, the method would panic.
@ -650,7 +650,7 @@ impl<'a, Space> VmWriter<'a, Space> {
/// Skips the first `nbytes` bytes of data. /// Skips the first `nbytes` bytes of data.
/// The length of available space is decreased accordingly. /// The length of available space is decreased accordingly.
/// ///
/// # Panic /// # Panics
/// ///
/// If `nbytes` is greater than `self.avail()`, then the method panics. /// If `nbytes` is greater than `self.avail()`, then the method panics.
pub fn skip(mut self, nbytes: usize) -> Self { pub fn skip(mut self, nbytes: usize) -> Self {