diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-19 03:10:21 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-19 03:10:21 +0000 |
commit | edb98f8b910b00be16868b21116924cffad785b9 (patch) | |
tree | eb98e40557395aa10c68c9bba496b62ff11a9369 /win32 | |
parent | 67964f299b671c9b29257c7a62000bfbadb4c556 (diff) | |
download | ruby-edb98f8b910b00be16868b21116924cffad785b9.tar.gz |
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')
-rw-r--r-- | win32/file.c | 2 | ||||
-rw-r--r-- | win32/win32.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/win32/file.c b/win32/file.c index 78e7331188..897f16e9ef 100644 --- a/win32/file.c +++ b/win32/file.c @@ -413,7 +413,7 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na path_encoding = rb_filesystem_encoding(); cp = path_cp = system_code_page(); - /* ignores dir since we are expading home */ + /* ignores dir since we are expanding home */ ignore_dir = 1; /* exclude ~ from the result */ 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) |