Skip to content

Commit

Permalink
Add comment to std::os::unix::ffi::os_str explaining that the modul…
Browse files Browse the repository at this point in the history
…e is reused on other platforms.
  • Loading branch information
CDirkx committed Jun 20, 2021
1 parent 835561a commit ad7b897
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/os/unix/ffi/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ use crate::sealed::Sealed;
use crate::sys::os_str::Buf;
use crate::sys_common::{AsInner, FromInner, IntoInner};

// Note: this file is currently reused in other `std::os::{platform}::ffi` modules to reduce duplication.
// Keep this in mind when applying changes to this file that only apply to `unix`.

/// Platform-specific extensions to [`OsString`].
///
/// This trait is sealed: it cannot be implemented outside the standard library.
Expand Down

0 comments on commit ad7b897

Please sign in to comment.