summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús García Sáez <blaxter@gmail.com>2009-11-11 22:38:38 +0100
committerWayne Meissner <wmeissner@gmail.com>2009-11-19 22:33:57 +1000
commit1f6acb8c5dddded36e35eeb6e32fe81507ae09ab (patch)
tree59211c6530881aeb8e81f458773725f44b04a91b
parent893d458f82b0821c3339e16a32729bdbea087543 (diff)
downloadffi-1f6acb8c5dddded36e35eeb6e32fe81507ae09ab.tar.gz
typo, ArgError -> ArgumentError
Signed-off-by: Wayne Meissner <wmeissner@gmail.com>
-rw-r--r--lib/ffi/library.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi/library.rb b/lib/ffi/library.rb
index abe24e7..7a0abe5 100644
--- a/lib/ffi/library.rb
+++ b/lib/ffi/library.rb
@@ -135,7 +135,7 @@ module FFI::Library
end
def callback(*args)
- raise ArgError, "wrong number of arguments" if args.length < 2 || args.length > 3
+ raise ArgumentError, "wrong number of arguments" if args.length < 2 || args.length > 3
name, params, ret = if args.length == 3
args
else