Skip to content

Commit c477e57

Browse files
committed
doc comments
1 parent 45e3945 commit c477e57

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
@@ -566,6 +566,9 @@ impl OsString {
566566
self.inner.truncate(len);
567567
}
568568

569+
/// More well behaving alternative to allowing outer types
570+
/// full mutable access to the core `Vec`.
571+
/// Provides plumbing to core `Vec::extend_from_slice`.
569572
#[inline]
570573
pub(crate) fn extend_from_slice(&mut self, other: &[u8]) {
571574
self.inner.extend_from_slice(other);

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

+3
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ impl Buf {
216216
self.inner.truncate(len);
217217
}
218218

219+
/// More well behaving alternative to allowing outer types
220+
/// full mutable access to the core `Vec`.
221+
/// Provides plumbing to core `Vec::extend_from_slice`.
219222
#[inline]
220223
pub(crate) fn extend_from_slice(&mut self, other: &[u8]) {
221224
self.inner.extend_from_slice(other);

0 commit comments

Comments
 (0)