summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_asn1.c2
-rw-r--r--ext/win32ole/sample/olegen.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c
index 4ac66203b9..e3f59bfe1e 100644
--- a/ext/openssl/ossl_asn1.c
+++ b/ext/openssl/ossl_asn1.c
@@ -1810,7 +1810,7 @@ Init_ossl_asn1()
* == OpenSSL::ASN1::ObjectId
*
* While OpenSSL::ASN1::ObjectId.new will allocate a new ObjectId, it is
- * not typically allocated this way, but rather that are recieved from
+ * not typically allocated this way, but rather that are received from
* parsed ASN1 encodings.
*
* === Additional attributes
diff --git a/ext/win32ole/sample/olegen.rb b/ext/win32ole/sample/olegen.rb
index 4ec576ca50..aa0288ddbb 100644
--- a/ext/win32ole/sample/olegen.rb
+++ b/ext/win32ole/sample/olegen.rb
@@ -8,7 +8,7 @@ require 'win32ole'
class WIN32COMGen
def initialize(typelib)
@typelib = typelib
- @reciever = ""
+ @receiver = ""
end
attr_reader :typelib
@@ -87,7 +87,7 @@ class WIN32COMGen
end
def generate_method_body(method, disptype, types=nil)
- " ret = #{@reciever}#{disptype}(#{method.dispid}, [" +
+ " ret = #{@receiver}#{disptype}(#{method.dispid}, [" +
generate_args(method).gsub("=nil", "") +
"], [" +
generate_argtypes(method, types) +
@@ -303,10 +303,10 @@ STR
if klass.ole_type == "Class" &&
klass.guid &&
klass.progid
- @reciever = "@dispatch."
+ @receiver = "@dispatch."
define_class(klass, io)
else
- @reciever = ""
+ @receiver = ""
define_module(klass, io)
end
generate_constants(klass, io)