From da24b086ec31246e8600db6c4398422e9dba3c0b Mon Sep 17 00:00:00 2001 From: Nicolas Abram Date: Thu, 20 Jan 2022 15:06:42 -0300 Subject: [PATCH] Update src/other-reprs.md Co-authored-by: Yuki Okushi --- src/other-reprs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/other-reprs.md b/src/other-reprs.md index ea8fc71..93da729 100644 --- a/src/other-reprs.md +++ b/src/other-reprs.md @@ -63,7 +63,7 @@ whole struct is guaranteed to be the same as that one field. The goal is to make it possible to transmute between the single field and the struct. An example of that is [`UnsafeCell`], which can be transmuted into the type it wraps ([`UnsafeCell`] also uses the unstable [no_niche][no-niche-pull], -so it's ABI is not actually guaranteed to be the same when nested in other types). +so its ABI is not actually guaranteed to be the same when nested in other types). Also, passing the struct through FFI where the inner field type is expected on the other side is guaranteed to work. In particular, this is necessary for `struct