summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortduehr <td@matasano.com>2016-01-21 09:14:02 -0600
committertduehr <td@matasano.com>2016-01-21 09:14:02 -0600
commit36c9248c079150111c892cc11a7694b6490841b8 (patch)
tree7ccf3f68e8facab4be0c51a1e6278cf1d1685c10
parentb34063d1e4a164240444d5f067d949f7aef098bb (diff)
parent1af39fbf83a72a4622b43aadb49650bed6b5ec19 (diff)
downloadffi-36c9248c079150111c892cc11a7694b6490841b8.tar.gz
Merge pull request #476 from johnsyweb/boy-scout
Typo Fixes
-rw-r--r--Rakefile2
-rw-r--r--ext/ffi_c/AbstractMemory.c2
-rw-r--r--ext/ffi_c/Buffer.c2
-rw-r--r--ext/ffi_c/MethodHandle.c4
-rw-r--r--ext/ffi_c/Pointer.c6
5 files changed, 8 insertions, 8 deletions
diff --git a/Rakefile b/Rakefile
index 57d87fc..14bfc61 100644
--- a/Rakefile
+++ b/Rakefile
@@ -138,7 +138,7 @@ end
task 'spec:run' => TEST_DEPS
task 'spec:specdoc' => TEST_DEPS
-task :default => :specs
+task :default => :spec
namespace 'java' do
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);
diff --git a/ext/ffi_c/Buffer.c b/ext/ffi_c/Buffer.c
index 8ae3a59..faf4834 100644
--- a/ext/ffi_c/Buffer.c
+++ b/ext/ffi_c/Buffer.c
@@ -253,7 +253,7 @@ buffer_inspect(VALUE self)
* @overload order(order)
* @param [:big, :little, :network] order
* @return [self]
- * Set endinaness of Buffer (+:network+ is an alias for +:big+).
+ * Set endianness of Buffer (+:network+ is an alias for +:big+).
*/
static VALUE
buffer_order(int argc, VALUE* argv, VALUE self)
diff --git a/ext/ffi_c/MethodHandle.c b/ext/ffi_c/MethodHandle.c
index cee1df5..bbf99a2 100644
--- a/ext/ffi_c/MethodHandle.c
+++ b/ext/ffi_c/MethodHandle.c
@@ -243,10 +243,10 @@ static VALUE custom_trampoline(caddr_t args, Closure*);
#define TRAMPOLINE_FUN_MAGIC (0xbeefcafe)
/*
- * This is a hand-coded trampoline to speedup entry from ruby to the FFI translation
+ * This is a hand-coded trampoline to speed-up entry from ruby to the FFI translation
* layer for i386 arches.
*
- * This does not make a discernable difference vs a raw closure, so for now,
+ * This does not make a discernible difference vs a raw closure, so for now,
* it is not enabled.
*/
__asm__(
diff --git a/ext/ffi_c/Pointer.c b/ext/ffi_c/Pointer.c
index edd931c..1eee790 100644
--- a/ext/ffi_c/Pointer.c
+++ b/ext/ffi_c/Pointer.c
@@ -89,7 +89,7 @@ ptr_allocate(VALUE klass)
* @overload initialize(type, address)
* @param [Type] type type for pointer
* @param [Integer] address base address for pointer
- * Create a new pointer from a {Type} and a base adresse
+ * Create a new pointer from a {Type} and a base address
* @return [self]
* A new instance of Pointer.
*/
@@ -146,11 +146,11 @@ ptr_initialize(int argc, VALUE* argv, VALUE self)
* call-seq: ptr.initialize_copy(other)
* @param [Pointer] other source for cloning or dupping
* @return [self]
- * @raise {RuntimeError} if +other+ is an unbounded memory area, or is unreable/unwritable
+ * @raise {RuntimeError} if +other+ is an unbounded memory area, or is unreadable/unwritable
* @raise {NoMemError} if failed to allocate memory for new object
* DO NOT CALL THIS METHOD.
*
- * This method is internally used by #dup and #clone. Memory contents is copied from +other+.
+ * This method is internally used by #dup and #clone. Memory content is copied from +other+.
*/
static VALUE
ptr_initialize_copy(VALUE self, VALUE other)