summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 03:10:21 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 03:10:21 +0000
commitedb98f8b910b00be16868b21116924cffad785b9 (patch)
treeeb98e40557395aa10c68c9bba496b62ff11a9369 /win32/win32.c
parent67964f299b671c9b29257c7a62000bfbadb4c556 (diff)
fix typos. Patch by k_takata.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 373f776504..318af2f1c1 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -649,7 +649,7 @@ StartSockets(void)
WSADATA retdata;
//
- // initalize the winsock interface and insure that it's
+ // initialize the winsock interface and insure that it's
// cleaned up at exit.
//
version = MAKEWORD(2, 0);
@@ -1517,8 +1517,8 @@ rb_w32_cmdvector(const char *cmd, char ***vec)
// When we've finished, and it's an input command (meaning that it's
// the processes argv), we'll do globing and then build the argument
// vector.
- // The outer loop does one interation for each element seen.
- // The inner loop does one interation for each character in the element.
+ // The outer loop does one iteration for each element seen.
+ // The inner loop does one iteration for each character in the element.
//
while (*(ptr = skipspace(ptr))) {
@@ -1569,7 +1569,7 @@ rb_w32_cmdvector(const char *cmd, char ***vec)
//
// if we're already in a string, see if this is the
// terminating close-quote. If it is, we're finished with
- // the string, but not neccessarily with the element.
+ // the string, but not necessarily with the element.
// If we're not already in a string, start one.
//
@@ -2587,7 +2587,7 @@ is_not_socket(SOCKET sock)
/* License: Ruby's */
static int
-is_pipe(SOCKET sock) /* DONT call this for SOCKET! it clains it is PIPE. */
+is_pipe(SOCKET sock) /* DONT call this for SOCKET! it claims it is PIPE. */
{
int ret;
@@ -4030,7 +4030,7 @@ poll_child_status(struct ChildRecord *child, int *stat_loc)
DWORD err;
if (!GetExitCodeProcess(child->hProcess, &exitcode)) {
- /* If an error occured, return immediatly. */
+ /* If an error occurred, return immediately. */
error_exit:
err = GetLastError();
if (err == ERROR_INVALID_PARAMETER)