Skip to content

Commit f26de60

Browse files
committed
FIx some docs
1 parent 1e89779 commit f26de60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/filesystem/filename.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ impl ShortFileName {
5959
}
6060
}
6161

62-
/// Get a short file name containing "..", which means "this directory".
62+
/// Get a short file name containing ".", which means "this directory".
6363
pub const fn this_dir() -> Self {
6464
Self {
6565
contents: *b". ",
6666
}
6767
}
6868

69-
/// Get base name (name without extension) of file name
69+
/// Get base name (without extension) of the file.
7070
pub fn base_name(&self) -> &[u8] {
7171
Self::bytes_before_space(&self.contents[..Self::FILENAME_BASE_MAX_LEN])
7272
}
7373

74-
/// Get base name (name without extension) of file name
74+
/// Get extension of the file (without base name).
7575
pub fn extension(&self) -> &[u8] {
7676
Self::bytes_before_space(&self.contents[Self::FILENAME_BASE_MAX_LEN..])
7777
}

0 commit comments

Comments
 (0)