Skip to content

Commit bd48a20

Browse files
committed
doc comments
1 parent 89c478e commit bd48a20

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

library/std/src/ffi/os_str.rs

+3
Original file line numberDiff line numberDiff 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);

library/std/src/sys/os_str/bytes.rs

+3
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)