diff options
author | Pete Johns <pete.johns@envato.com> | 2015-12-23 12:56:50 +1100 |
---|---|---|
committer | Pete Johns <pete.johns@envato.com> | 2015-12-23 12:56:50 +1100 |
commit | dc969585fcaa6637b0067b027a102afd44e76df9 (patch) | |
tree | fc4240bca940cdc8f2c774acf8f44078ec3a2d33 | |
parent | 34319bd1b9c6422e73a2814a1277affcc001e876 (diff) | |
download | ffi-dc969585fcaa6637b0067b027a102afd44e76df9.tar.gz |
Fix typo in exception message
-rw-r--r-- | ext/ffi_c/AbstractMemory.c | 2 |
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); |