Skip to content

Commit 0dae6d5

Browse files
jsgfemilio
authored andcommitted
Small doc tweaks
1 parent 71cf038 commit 0dae6d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/src/using-fam.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Bindgen supports these structures in two different ways.
2929

3030
## `__IncompleteArrayField`
3131

32-
By default, bindgen will the corresponding Rust structure:
32+
By default, bindgen will generate the corresponding Rust structure:
3333
```rust,ignore
3434
#[repr(C)]
3535
struct MyRecord {
@@ -75,7 +75,7 @@ struct MyRecord {
7575
}
7676
```
7777
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").
7979

8080
This looks almost identical to a normal Rust structure, except that you'll note
8181
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]> {
9999

100100
That is:
101101
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)
103103
3. it has the default type of `[c_char; 0]` - that is a zero-sized array of characters
104104

105105
This means that referencing plain `MyRecord` will be exactly like `MyRecord`

0 commit comments

Comments
 (0)