From 018f2181c608b77f17dd5d662c7cddbd8a3037a0 Mon Sep 17 00:00:00 2001 From: anthonyray Date: Fri, 13 Mar 2020 15:08:02 +0100 Subject: [PATCH] Fix minor typo --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 59e103a..95fadf7 100644 --- a/README.md +++ b/README.md @@ -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, @@ -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; @@ -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