diff --git a/guide/src/derive-reprc/_.md b/guide/src/derive-reprc/_.md index 367cbdba64..b862d5f1ff 100644 --- a/guide/src/derive-reprc/_.md +++ b/guide/src/derive-reprc/_.md @@ -67,7 +67,7 @@ Currently, the supported types for the attribute are: use ::safer_ffi::prelude::*; #[derive_ReprC] - #[ReprC::opaque] + #[repr(opaque)] struct MyOpaque { /* anything goes here */ } diff --git a/guide/src/derive-reprc/struct.md b/guide/src/derive-reprc/struct.md index 9c21e41ea1..5f79cca0da 100644 --- a/guide/src/derive-reprc/struct.md +++ b/guide/src/derive-reprc/struct.md @@ -105,7 +105,7 @@ and function abstraction: ```rust,noplaypen #[derive_ReprC] -#[ReprC::opaque] // <-- instead of `#[repr(C)]` +#[repr(opaque)] // <-- instead of `#[repr(C)]` pub struct ComplicatedStruct { path: PathBuf, @@ -132,7 +132,7 @@ use ::std::{ use ::safer_ffi::prelude::*; #[derive_ReprC] -#[ReprC::opaque] +#[repr(opaque)] pub struct ComplicatedStruct { path: PathBuf,