Skip to content

Commit b9ca313

Browse files
detlyGankra
authored andcommitted
The #[repr(C)] attribute on the callback example is not necessary, since the type is not used in C.
1 parent ce7f52b commit b9ca313

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ffi.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ referenced Rust object.
310310
Rust code:
311311
312312
```rust,no_run
313-
#[repr(C)]
314313
struct RustObject {
315314
a: i32,
316315
// Other members...

0 commit comments

Comments
 (0)