summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Johns <pete.johns@envato.com>2015-12-23 12:56:50 +1100
committerPete Johns <pete.johns@envato.com>2015-12-23 12:56:50 +1100
commitdc969585fcaa6637b0067b027a102afd44e76df9 (patch)
treefc4240bca940cdc8f2c774acf8f44078ec3a2d33
parent34319bd1b9c6422e73a2814a1277affcc001e876 (diff)
downloadffi-dc969585fcaa6637b0067b027a102afd44e76df9.tar.gz
Fix typo in exception message
-rw-r--r--ext/ffi_c/AbstractMemory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi_c/AbstractMemory.c b/ext/ffi_c/AbstractMemory.c
index 156d7cf..144199c 100644
--- a/ext/ffi_c/AbstractMemory.c
+++ b/ext/ffi_c/AbstractMemory.c
@@ -497,7 +497,7 @@ memory_put_bytes(int argc, VALUE* argv, VALUE self)
off = NUM2LONG(offset);
idx = nargs > 2 ? NUM2LONG(rbIndex) : 0;
if (idx < 0) {
- rb_raise(rb_eRangeError, "index canot be less than zero");
+ rb_raise(rb_eRangeError, "index cannot be less than zero");
return Qnil;
}
len = nargs > 3 ? NUM2LONG(rbLength) : (RSTRING_LEN(str) - idx);