Skip to content

Commit ad7b897

Browse files
committed
Add comment to std::os::unix::ffi::os_str explaining that the module is reused on other platforms.
1 parent 835561a commit ad7b897

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/os/unix/ffi/os_str.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ use crate::sealed::Sealed;
44
use crate::sys::os_str::Buf;
55
use crate::sys_common::{AsInner, FromInner, IntoInner};
66

7+
// Note: this file is currently reused in other `std::os::{platform}::ffi` modules to reduce duplication.
8+
// Keep this in mind when applying changes to this file that only apply to `unix`.
9+
710
/// Platform-specific extensions to [`OsString`].
811
///
912
/// This trait is sealed: it cannot be implemented outside the standard library.

0 commit comments

Comments
 (0)