mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 03:56:42 +00:00
Fix typos in API documentation
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
6e59617fc7
commit
33a7da9991
@ -73,7 +73,7 @@ impl Bio {
|
||||
///
|
||||
/// Returns a `BioWaiter` to the caller to wait for its completion.
|
||||
///
|
||||
/// # Panic
|
||||
/// # Panics
|
||||
///
|
||||
/// The caller must not submit a `Bio` more than once. Otherwise, a panic shall be triggered.
|
||||
pub fn submit(&self, block_device: &dyn BlockDevice) -> Result<BioWaiter, BioEnqueueError> {
|
||||
@ -107,7 +107,7 @@ impl Bio {
|
||||
///
|
||||
/// Returns the result status of the `Bio`.
|
||||
///
|
||||
/// # Panic
|
||||
/// # Panics
|
||||
///
|
||||
/// The caller must not submit a `Bio` more than once. Otherwise, a panic shall be triggered.
|
||||
pub fn submit_sync(
|
||||
@ -169,7 +169,7 @@ impl BioWaiter {
|
||||
|
||||
/// Gets the `index`-th `Bio` request associated with `self`.
|
||||
///
|
||||
/// # Panic
|
||||
/// # Panics
|
||||
///
|
||||
/// If the `index` is out of bounds, this method will panic.
|
||||
pub fn req(&self, index: usize) -> Bio {
|
||||
@ -178,7 +178,7 @@ impl BioWaiter {
|
||||
|
||||
/// Returns the status of the `index`-th `Bio` request associated with `self`.
|
||||
///
|
||||
/// # Panic
|
||||
/// # Panics
|
||||
///
|
||||
/// If the `index` is out of bounds, this method will panic.
|
||||
pub fn status(&self, index: usize) -> BioStatus {
|
||||
|
@ -182,7 +182,7 @@ impl BioRequest {
|
||||
///
|
||||
/// The merged `SubmittedBio` can only be placed at the front or back.
|
||||
///
|
||||
/// # Panic
|
||||
/// # Panics
|
||||
///
|
||||
/// If the `SubmittedBio` can not be merged, this method will panic.
|
||||
pub fn merge_bio(&mut self, rq_bio: SubmittedBio) {
|
||||
|
Reference in New Issue
Block a user