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 {
59
59
}
60
60
}
61
61
62
- /// Get a short file name containing ".. ", which means "this directory".
62
+ /// Get a short file name containing ".", which means "this directory".
63
63
pub const fn this_dir ( ) -> Self {
64
64
Self {
65
65
contents : * b". " ,
66
66
}
67
67
}
68
68
69
- /// Get base name (name without extension) of file name
69
+ /// Get base name (without extension) of the file.
70
70
pub fn base_name ( & self ) -> & [ u8 ] {
71
71
Self :: bytes_before_space ( & self . contents [ ..Self :: FILENAME_BASE_MAX_LEN ] )
72
72
}
73
73
74
- /// Get base name (name without extension) of file name
74
+ /// Get extension of the file (without base name).
75
75
pub fn extension ( & self ) -> & [ u8 ] {
76
76
Self :: bytes_before_space ( & self . contents [ Self :: FILENAME_BASE_MAX_LEN ..] )
77
77
}
You can’t perform that action at this time.
0 commit comments