summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/digest/sha2/sha2.c2
-rw-r--r--ext/nkf/nkf-utf8/nkf.c2
-rw-r--r--ext/nkf/nkf.c2
-rw-r--r--ext/win32/lib/win32/sspi.rb2
-rw-r--r--ext/win32ole/sample/xml.rb12
-rw-r--r--ext/win32ole/win32ole_type.c2
-rw-r--r--ext/win32ole/win32ole_variant.c2
7 files changed, 12 insertions, 12 deletions
diff --git a/ext/digest/sha2/sha2.c b/ext/digest/sha2/sha2.c
index c86eab37a0..f55de33eb3 100644
--- a/ext/digest/sha2/sha2.c
+++ b/ext/digest/sha2/sha2.c
@@ -94,7 +94,7 @@
/*
* Define the followingsha2_* types to types of the correct length on
- * the native archtecture. Most BSD systems and Linux define u_intXX_t
+ * the native architecture. Most BSD systems and Linux define u_intXX_t
* types. Machines with very recent ANSI C headers, can use the
* uintXX_t definintions from inttypes.h by defining SHA2_USE_INTTYPES_H
* during compile or in the sha.h header file.
diff --git a/ext/nkf/nkf-utf8/nkf.c b/ext/nkf/nkf-utf8/nkf.c
index f797252409..08b372ffab 100644
--- a/ext/nkf/nkf-utf8/nkf.c
+++ b/ext/nkf/nkf-utf8/nkf.c
@@ -6787,7 +6787,7 @@ options(unsigned char *cp)
case 'S': /* Shift_JIS input */
input_encoding = nkf_enc_from_index(SHIFT_JIS);
continue;
- case 'Z': /* Convert X0208 alphabet to asii */
+ case 'Z': /* Convert X0208 alphabet to ascii */
/* alpha_f
bit:0 Convert JIS X 0208 Alphabet to ASCII
bit:1 Convert Kankaku to one space
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c
index 37717e4799..76f7648d1b 100644
--- a/ext/nkf/nkf.c
+++ b/ext/nkf/nkf.c
@@ -458,7 +458,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
* with this and -x option, nkf can be used as UTF converter.
* (In other words, without this and -x option, nkf doesn't save some characters)
*
- * When nkf convert string which related to path, you should use this opion.
+ * When nkf convert string which related to path, you should use this option.
*
* === --cap-input
*
diff --git a/ext/win32/lib/win32/sspi.rb b/ext/win32/lib/win32/sspi.rb
index a73819f24e..20205fd4d6 100644
--- a/ext/win32/lib/win32/sspi.rb
+++ b/ext/win32/lib/win32/sspi.rb
@@ -223,7 +223,7 @@ module Win32
B64_TOKEN_PREFIX = ["NTLMSSP"].pack("m").delete("=\n")
# Given a connection and a request path, performs authentication as the current user and returns
- # the response from a GET request. The connnection should be a Net::HTTP object, and it should
+ # the response from a GET request. The connection should be a Net::HTTP object, and it should
# have been constructed using the Net::HTTP.Proxy method, but anything that responds to "get" will work.
# If a user and domain are given, will authenticate as the given user.
# Returns the response received from the get method (usually Net::HTTPResponse)
diff --git a/ext/win32ole/sample/xml.rb b/ext/win32ole/sample/xml.rb
index 36c3db32ef..5a239c9336 100644
--- a/ext/win32ole/sample/xml.rb
+++ b/ext/win32ole/sample/xml.rb
@@ -1032,8 +1032,8 @@ module IXMLDOMDocument
end
# VOID save
- # save the document to a specified desination
- # VARIANT arg0 --- desination [IN]
+ # save the document to a specified destination
+ # VARIANT arg0 --- destination [IN]
def save(arg0)
ret = _invoke(64, [arg0], [VT_VARIANT])
@lastargs = WIN32OLE::ARGV
@@ -6224,8 +6224,8 @@ class Microsoft_XMLDOM_1_0 # DOMDocument
end
# VOID save
- # save the document to a specified desination
- # VARIANT arg0 --- desination [IN]
+ # save the document to a specified destination
+ # VARIANT arg0 --- destination [IN]
def save(arg0)
ret = @dispatch._invoke(64, [arg0], [VT_VARIANT])
@lastargs = WIN32OLE::ARGV
@@ -6831,8 +6831,8 @@ class Microsoft_FreeThreadedXMLDOM_1_0 # DOMFreeThreadedDocument
end
# VOID save
- # save the document to a specified desination
- # VARIANT arg0 --- desination [IN]
+ # save the document to a specified destination
+ # VARIANT arg0 --- destination [IN]
def save(arg0)
ret = @dispatch._invoke(64, [arg0], [VT_VARIANT])
@lastargs = WIN32OLE::ARGV
diff --git a/ext/win32ole/win32ole_type.c b/ext/win32ole/win32ole_type.c
index fa39bf3696..48dbc9dbde 100644
--- a/ext/win32ole/win32ole_type.c
+++ b/ext/win32ole/win32ole_type.c
@@ -56,7 +56,7 @@ static const rb_data_type_t oletype_datatype = {
/*
* Document-class: WIN32OLE_TYPE
*
- * <code>WIN32OLE_TYPE</code> objects represent OLE type libarary information.
+ * <code>WIN32OLE_TYPE</code> objects represent OLE type library information.
*/
static void
diff --git a/ext/win32ole/win32ole_variant.c b/ext/win32ole/win32ole_variant.c
index 93f0636593..5ab29669f6 100644
--- a/ext/win32ole/win32ole_variant.c
+++ b/ext/win32ole/win32ole_variant.c
@@ -371,7 +371,7 @@ check_type_val2variant(VALUE val)
* Win32OLE converts Ruby object into OLE variant automatically when
* invoking OLE methods. If OLE method requires the argument which is
* different from the variant by automatic conversion of Win32OLE, you
- * can convert the specfied variant type by using WIN32OLE_VARIANT class.
+ * can convert the specified variant type by using WIN32OLE_VARIANT class.
*
* param = WIN32OLE_VARIANT.new(10, WIN32OLE::VARIANT::VT_R4)
* oleobj.method(param)