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 {
558558 self . inner . as_mut_vec_for_path_buf ( )
559559 }
560560
561+ /// More well behaving alternative to allowing outer types
562+ /// full mutable access to the core `Vec`.
563+ /// Provides plumbing to core `Vec::truncate`.
561564 #[ inline]
562565 pub ( crate ) fn truncate ( & mut self , len : usize ) {
563566 self . inner . truncate ( len) ;
Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ impl Buf {
208208 & mut self . inner
209209 }
210210
211+ /// More well behaving alternative to allowing outer types
212+ /// full mutable access to the core `Vec`.
213+ /// Provides plumbing to core `Vec::truncate`.
211214 #[ inline]
212215 pub ( crate ) fn truncate ( & mut self , len : usize ) {
213216 self . inner . truncate ( len) ;
You can’t perform that action at this time.
0 commit comments