summaryrefslogtreecommitdiff
path: root/lib/ffi/function.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ffi/function.rb')
-rw-r--r--lib/ffi/function.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ffi/function.rb b/lib/ffi/function.rb
index 5996d96..6fff6ae 100644
--- a/lib/ffi/function.rb
+++ b/lib/ffi/function.rb
@@ -32,8 +32,8 @@ module FFI
class Function
# Only MRI allows function type queries
if private_method_defined?(:type)
- def result_type
- type.result_type
+ def return_type
+ type.return_type
end
def param_types