Fix example C code
@@ -235,14 +235,14 @@ WrenForeignClassMethods bindForeignClass(
if (strcmp(className, "File") == 0)
{
- methods->allocate = fileAllocate;
- methods->finalize = fileFinalize;
+ methods.allocate = fileAllocate;
+ methods.finalize = fileFinalize;
}
else
{
// Unknown class.
- methods->allocate = NULL;
- methods->finalize = NULL;
+ methods.allocate = NULL;
+ methods.finalize = NULL;
}
return methods;
