Skip to content

Commit

Permalink
FIx some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Apr 3, 2024
1 parent 1e89779 commit f26de60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filesystem/filename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ impl ShortFileName {
}
}

/// Get a short file name containing "..", which means "this directory".
/// Get a short file name containing ".", which means "this directory".
pub const fn this_dir() -> Self {
Self {
contents: *b". ",
}
}

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

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

0 comments on commit f26de60

Please sign in to comment.