Skip to content

Commit b485e1c

Browse files
committed
docs(fs): use active instead of imperative language
1 parent 63f9896 commit b485e1c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/fs/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ pub(crate) trait VfsNode: Send + Sync + fmt::Debug {
6060
Err(Errno::Nosys)
6161
}
6262

63-
/// Determine the syscall interface
63+
/// Determines the syscall interface
6464
fn get_object(&self) -> io::Result<Arc<async_lock::RwLock<dyn ObjectInterface>>> {
6565
Err(Errno::Nosys)
6666
}
6767

68-
/// Create a new directory node
68+
/// Creates a new directory node
6969
fn traverse_mkdir(
7070
&self,
7171
_components: &mut Vec<&str>,
@@ -74,32 +74,32 @@ pub(crate) trait VfsNode: Send + Sync + fmt::Debug {
7474
Err(Errno::Nosys)
7575
}
7676

77-
/// Delete a directory node
77+
/// Deletes a directory node
7878
fn traverse_rmdir(&self, _components: &mut Vec<&str>) -> io::Result<()> {
7979
Err(Errno::Nosys)
8080
}
8181

82-
/// Remove the specified file
82+
/// Removes the specified file
8383
fn traverse_unlink(&self, _components: &mut Vec<&str>) -> io::Result<()> {
8484
Err(Errno::Nosys)
8585
}
8686

87-
/// Open a directory
87+
/// Opens a directory
8888
fn traverse_readdir(&self, _components: &mut Vec<&str>) -> io::Result<Vec<DirectoryEntry>> {
8989
Err(Errno::Nosys)
9090
}
9191

92-
/// Get file status
92+
/// Gets file status
9393
fn traverse_lstat(&self, _components: &mut Vec<&str>) -> io::Result<FileAttr> {
9494
Err(Errno::Nosys)
9595
}
9696

97-
/// Get file status
97+
/// Gets file status
9898
fn traverse_stat(&self, _components: &mut Vec<&str>) -> io::Result<FileAttr> {
9999
Err(Errno::Nosys)
100100
}
101101

102-
/// Mount a file system
102+
/// Mounts a file system
103103
fn traverse_mount(
104104
&self,
105105
_components: &mut Vec<&str>,
@@ -108,7 +108,7 @@ pub(crate) trait VfsNode: Send + Sync + fmt::Debug {
108108
Err(Errno::Nosys)
109109
}
110110

111-
/// Open a file
111+
/// Opens a file
112112
fn traverse_open(
113113
&self,
114114
_components: &mut Vec<&str>,
@@ -118,7 +118,7 @@ pub(crate) trait VfsNode: Send + Sync + fmt::Debug {
118118
Err(Errno::Nosys)
119119
}
120120

121-
/// Create a read-only file
121+
/// Creates a read-only file
122122
fn traverse_create_file(
123123
&self,
124124
_components: &mut Vec<&str>,

0 commit comments

Comments
 (0)