File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments