1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

doc/extension.rdoc: Fix small copy+paste mistake

[Fix GH-1884]

From: Lars Kanis <lars@greiz-reinsdorf.de>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-06-10 06:00:45 +00:00
parent aee5c4338b
commit 5e9ea3c75f

View file

@ -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)