diff --git a/docs/capi.rst b/docs/capi.rst index 3f932938..f25a7f05 100644 --- a/docs/capi.rst +++ b/docs/capi.rst @@ -90,7 +90,7 @@ When you use dynamic memory allocation inside C APIs, you must be caseful about f = create_foo(); - data = pic_data_alloc(pic, &f, md); + data = pic_data_alloc(pic, &foo_type, md); return pic_obj_value(data); }