mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 17:33:23 +00:00
Fix typos in API documentation
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
6e59617fc7
commit
33a7da9991
@ -29,6 +29,8 @@ pub trait FileLike: Send + Sync + Any {
|
||||
///
|
||||
/// The file must be seekable to support `read_at`.
|
||||
/// Unlike [`read`], `read_at` will not change the file offset.
|
||||
///
|
||||
/// [`read`]: FileLike::read
|
||||
fn read_at(&self, offset: usize, buf: &mut [u8]) -> Result<usize> {
|
||||
return_errno_with_message!(Errno::EINVAL, "read_at is not supported");
|
||||
}
|
||||
@ -38,6 +40,8 @@ pub trait FileLike: Send + Sync + Any {
|
||||
/// The file must be seekable to support `write_at`.
|
||||
/// Unlike [`write`], `write_at` will not change the file offset.
|
||||
/// If the file is append-only, the `offset` will be ignored.
|
||||
///
|
||||
/// [`write`]: FileLike::write
|
||||
fn write_at(&self, offset: usize, buf: &[u8]) -> Result<usize> {
|
||||
return_errno_with_message!(Errno::EINVAL, "write_at is not supported");
|
||||
}
|
||||
|
Reference in New Issue
Block a user