mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
Use the plural form in # Panic
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
dee7734073
commit
79578c9aa0
@ -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 {
|
||||||
|
Reference in New Issue
Block a user