summaryrefslogtreecommitdiff
path: root/ext/fiddle/lib/fiddle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fiddle/lib/fiddle.rb')
-rw-r--r--ext/fiddle/lib/fiddle.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/fiddle/lib/fiddle.rb b/ext/fiddle/lib/fiddle.rb
index c8a7ef1b05c..3a9b5d5bffa 100644
--- a/ext/fiddle/lib/fiddle.rb
+++ b/ext/fiddle/lib/fiddle.rb
@@ -32,6 +32,11 @@ module Fiddle
# Creates a new handler that opens +library+, and returns an instance of
# Fiddle::Handle.
#
+ # If +nil+ is given for the +library+, Fiddle::Handle::DEFAULT is used, which
+ # usually means +libc+.
+ #
+ # libc = Fiddle.dlopen(nil)
+ #
# See Fiddle::Handle.new for more.
def dlopen library
Fiddle::Handle.new library