diff --git a/doc/extension.rdoc b/doc/extension.rdoc index 271ed67f9c..691631ea17 100644 --- a/doc/extension.rdoc +++ b/doc/extension.rdoc @@ -746,7 +746,7 @@ be assigned to sval, which should be a pointer of the type specified. ==== Ruby object to C struct To retrieve the C pointer from the Data object, use the macro -Data_Get_Struct(). +TypedData_Get_Struct(). TypedData_Get_Struct(obj, type, &data_type, sval)