Prefix private fields with _

pull/44/head
Simon Sapin 7 years ago committed by GitHub
parent 36a7633208
commit 5b45a89c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -740,8 +740,8 @@ void bar(struct Bar *arg);
To do this in Rust, lets create our own opaque types:
```rust
#[repr(C)] pub struct Foo { private: [u8; 0] }
#[repr(C)] pub struct Bar { private: [u8; 0] }
#[repr(C)] pub struct Foo { _private: [u8; 0] }
#[repr(C)] pub struct Bar { _private: [u8; 0] }
extern "C" {
pub fn foo(arg: *mut Foo);

Loading…
Cancel
Save