File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -558,6 +558,9 @@ impl OsString {
558
558
self . inner . as_mut_vec_for_path_buf ( )
559
559
}
560
560
561
+ /// More well behaving alternative to allowing outer types
562
+ /// full mutable access to the core `Vec`.
563
+ /// Provides plumbing to core `Vec::truncate`.
561
564
#[ inline]
562
565
pub ( crate ) fn truncate ( & mut self , len : usize ) {
563
566
self . inner . truncate ( len) ;
Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ impl Buf {
208
208
& mut self . inner
209
209
}
210
210
211
+ /// More well behaving alternative to allowing outer types
212
+ /// full mutable access to the core `Vec`.
213
+ /// Provides plumbing to core `Vec::truncate`.
211
214
#[ inline]
212
215
pub ( crate ) fn truncate ( & mut self , len : usize ) {
213
216
self . inner . truncate ( len) ;
You can’t perform that action at this time.
0 commit comments