Skip to content

Commit

Permalink
Fix minor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyray committed Mar 13, 2020
1 parent 42e9a8d commit 018f218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Instead of manually writing the body of the conversion traits, we can derive the
```
#[repr(C)]
#[derive(CReprOf, AsRust, CDrop)]
#[target_type(Pancake)]
#[target_type(Pizza)]
pub struct CPizza {
pub name: *const libc::c_char,
pub toppings: *const CArray<CTopping>,
Expand All @@ -81,7 +81,7 @@ See definitions below this table.

```
typedef struct {
const CSlotValue *slot_values; // Pointer to the first slot value of the list
const T *values; // Pointer to the value of the list
int32_t size; // Number of T values in the list
} CArrayT;
Expand Down Expand Up @@ -120,7 +120,7 @@ type and that an instance of the parametrized type can be created form this stru
## The CDrop trait

A Trait showing that the `repr(C)` compatible view implementing it can free up its part of memory that are not
managed by Rust drop mechanism.
managed by Rust drop mechanism.


## Caveats with derivation of CReprOf and AsRust traits
Expand Down

0 comments on commit 018f218

Please sign in to comment.