File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Bindgen supports these structures in two different ways.
29
29
30
30
## ` __IncompleteArrayField `
31
31
32
- By default, bindgen will the corresponding Rust structure:
32
+ By default, bindgen will generate the corresponding Rust structure:
33
33
``` rust,ignore
34
34
#[repr(C)]
35
35
struct MyRecord {
@@ -75,7 +75,7 @@ struct MyRecord {
75
75
}
76
76
```
77
77
Rust has a set of types which are almost exact analogs for these Flexible Array
78
- Member types: the Dynamically Sized Type ("DST"). For example:
78
+ Member types: the Dynamically Sized Type ("DST").
79
79
80
80
This looks almost identical to a normal Rust structure, except that you'll note
81
81
the type of the ` payload ` field is a raw slice ` [...] ` rather than the usual
@@ -99,7 +99,7 @@ struct MyRecord<FAM: ?Sized = [::std::os::raw::c_char; 0]> {
99
99
100
100
That is:
101
101
1 . a type parameter ` FAM ` which represents the type of the ` payload ` field,
102
- 2 . it's ` ?Sized ` meaning it can be unsigned (ie, a DST)
102
+ 2 . it's ` ?Sized ` meaning it can be unsized (ie, a DST)
103
103
3 . it has the default type of ` [c_char; 0] ` - that is a zero-sized array of characters
104
104
105
105
This means that referencing plain ` MyRecord ` will be exactly like ` MyRecord `
You can’t perform that action at this time.
0 commit comments