File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ use crate::str;
20
20
/// in each pair are borrowed references; the latter are owned
21
21
/// strings.
22
22
///
23
- /// Note that this structure is **not** `repr(C)` and is not recommended to be
24
- /// placed in the signatures of FFI functions. Instead, safe wrappers of FFI
25
- /// functions may leverage the unsafe [`CStr::from_ptr`] constructor to provide
26
- /// a safe interface to other consumers.
23
+ /// Note that this structure does **not** have a guaranteed layout (the `repr(transparent)`
24
+ /// notwithstanding) and is not recommended to be placed in the signatures of FFI functions.
25
+ /// Instead, safe wrappers of FFI functions may leverage the unsafe [`CStr::from_ptr`] constructor
26
+ /// to provide a safe interface to other consumers.
27
27
///
28
28
/// [`CString`]: ../../std/ffi/struct.CString.html
29
29
/// [`String`]: ../../std/string/struct.String.html
You can’t perform that action at this time.
0 commit comments