aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.EXT10
-rw-r--r--README.EXT.ja2
-rw-r--r--bignum.c2
-rw-r--r--compile.c4
-rw-r--r--doc/ChangeLog-1.8.02
-rw-r--r--doc/ChangeLog-1.9.34
-rw-r--r--eval.c10
-rw-r--r--ext/bigdecimal/bigdecimal.c24
-rw-r--r--ext/bigdecimal/bigdecimal.h2
-rw-r--r--ext/curses/curses.c20
-rw-r--r--ext/dl/dl.c2
-rw-r--r--ext/openssl/ossl_ssl.c2
-rw-r--r--ext/pathname/pathname.c2
-rw-r--r--ext/psych/yaml/yaml.h2
-rw-r--r--ext/readline/readline.c2
-rw-r--r--ext/sdbm/_sdbm.c4
-rw-r--r--ext/tk/README.1st2
-rw-r--r--ext/tk/README.ActiveTcl2
-rw-r--r--ext/tk/README.tcltklib14
-rw-r--r--ext/tk/lib/tk/image.rb2
-rw-r--r--ext/tk/lib/tkextlib/SUPPORT_STATUS8
-rw-r--r--ext/tk/lib/tkextlib/tile/style.rb4
-rw-r--r--ext/tk/sample/figmemo_sample.rb2
-rw-r--r--ext/tk/sample/msgs_tk/README2
-rw-r--r--ext/tk/sample/tkextlib/blt/readme.txt2
-rw-r--r--ext/tk/sample/tkextlib/bwidget/Orig_LICENSE.txt4
-rw-r--r--ext/tk/sample/tkextlib/iwidgets/catalog_demo/Orig_LICENSE.txt6
-rw-r--r--ext/tk/sample/tkextlib/tcllib/Orig_LICENSE.txt4
-rw-r--r--ext/tk/sample/tkextlib/tkimg/demo.rb2
-rw-r--r--ext/tk/sample/tkextlib/tkimg/readme.txt2
-rw-r--r--ext/tk/sample/tkextlib/tktable/Orig_LICENSE.txt4
-rw-r--r--ext/tk/sample/tkextlib/treectrl/readme.txt2
-rw-r--r--ext/tk/sample/tkextlib/vu/Orig_LICENSE.txt4
-rw-r--r--file.c4
-rw-r--r--include/ruby/ruby.h2
-rw-r--r--io.c2
-rw-r--r--lib/base64.rb2
-rw-r--r--lib/net/ftp.rb2
-rw-r--r--lib/optparse.rb2
-rw-r--r--lib/prettyprint.rb10
-rw-r--r--lib/racc/parser.rb8
-rw-r--r--lib/rake/name_space.rb2
-rw-r--r--lib/rdoc/rd/block_parser.rb2
-rw-r--r--lib/rdoc/rd/inline_parser.rb2
-rw-r--r--lib/rubygems.rb2
-rw-r--r--lib/rubygems/commands/list_command.rb2
-rw-r--r--lib/shell.rb2
-rw-r--r--lib/sync.rb2
-rw-r--r--lib/tmpdir.rb2
-rw-r--r--missing/crypt.c2
-rw-r--r--missing/file.h2
-rw-r--r--missing/flock.c4
-rw-r--r--nacl/README.nacl2
-rw-r--r--process.c4
-rw-r--r--range.c2
-rw-r--r--ruby.c2
-rw-r--r--string.c2
-rw-r--r--thread.c14
-rw-r--r--time.c6
-rw-r--r--vm.c2
-rw-r--r--win32/file.c2
-rw-r--r--win32/win32.c12
62 files changed, 132 insertions, 132 deletions
diff --git a/README.EXT b/README.EXT
index 6a622d2b11..9b571b36a2 100644
--- a/README.EXT
+++ b/README.EXT
@@ -760,7 +760,7 @@ various conditions.
check_sizeof(type[, headers[, opts]]): check size of type
check_signedness(type[, headers[, opts]]): check signedness of type
convertible_int(type[, headers[, opts]]): find convertible integer type
- find_executable(bin[, path]): find excutable file path
+ find_executable(bin[, path]): find executable file path
create_header(header): generate configured header
create_makefile(target[, target_prefix]): generate Makefile
@@ -853,7 +853,7 @@ lex.c :: automatically generated from keywords
eval_safe.c
insns.def : definition of VM instructions
iseq.c : implementation of VM::ISeq
- thread.c : thread management and context swiching
+ thread.c : thread management and context switching
thread_win32.c : thread implementation
thread_pthread.c : ditto
vm.c
@@ -882,7 +882,7 @@ lex.c :: automatically generated from keywords
== Utility Functions
-debug.c :: debug symbols for C debuggger
+debug.c :: debug symbols for C debugger
dln.c :: dynamic loading
st.c :: general purpose hash table
strftime.c :: formatting times
@@ -1312,12 +1312,12 @@ VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2) ::
Calls the function func1 with arg1 as the argument, then calls func2
with arg2 if execution terminated. The return value from
- rb_ensure() is that of func1 when no exception occured.
+ rb_ensure() is that of func1 when no exception occurred.
VALUE rb_protect(VALUE (*func) (VALUE), VALUE arg, int *state) ::
Calls the function func with arg as the argument. If no exception
- occured during func, it returns the result of func and *state is zero.
+ occurred during func, it returns the result of func and *state is zero.
Otherwise, it returns Qnil and sets *state to nonzero. If state is
NULL, it is not set in both cases.
You have to clear the error info with rb_set_errinfo(Qnil) when
diff --git a/README.EXT.ja b/README.EXT.ja
index 7e6342ae60..b57bacc501 100644
--- a/README.EXT.ja
+++ b/README.EXT.ja
@@ -193,7 +193,7 @@ INT2NUM()は整数がFIXNUMの範囲に収まらない場合,Bignumに変換
Rubyが用意している関数を用いてください.
ここではもっとも使われるであろう文字列と配列の生成/操作を行
-い関数をあげます(全部ではないです).
+う関数をあげます(全部ではないです).
=== 文字列に対する関数
diff --git a/bignum.c b/bignum.c
index 0b9573fba9..9a28b5bac5 100644
--- a/bignum.c
+++ b/bignum.c
@@ -363,7 +363,7 @@ rb_int2inum(SIGNED_VALUE n)
* is the sign bit: 1 means negative and 0 means zero or positive.
*
* If given size of buf (num_longs) is not enough to represent val,
- * higier words (including a sign bit) are ignored.
+ * higher words (including a sign bit) are ignored.
*/
void
rb_big_pack(VALUE val, unsigned long *buf, long num_longs)
diff --git a/compile.c b/compile.c
index 57f5a5fb92..d80d409865 100644
--- a/compile.c
+++ b/compile.c
@@ -3429,7 +3429,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
redo_label, end_label);
}
else if (type == NODE_UNTIL) {
- /* untile */
+ /* until */
compile_branch_condition(iseq, ret, node->nd_cond,
end_label, redo_label);
}
@@ -4473,7 +4473,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
ADD_INSN1(args, line, newarray, INT2FIX(j));
ADD_INSN (args, line, concatarray);
- /* argc is setteled at above */
+ /* argc is settled at above */
}
else {
int j;
diff --git a/doc/ChangeLog-1.8.0 b/doc/ChangeLog-1.8.0
index e16c7f4f20..1729792b8b 100644
--- a/doc/ChangeLog-1.8.0
+++ b/doc/ChangeLog-1.8.0
@@ -13763,7 +13763,7 @@ Tue Apr 17 17:33:55 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (handle_rescue): use === to compare exception match.
- * error.c (syserr_eqq): comparison between SytemCallErrors should
+ * error.c (syserr_eqq): comparison between SystemCallErrors should
based on their error numbers.
Tue Apr 17 16:54:39 2001 K.Kosako <kosako@sofnec.co.jp>
diff --git a/doc/ChangeLog-1.9.3 b/doc/ChangeLog-1.9.3
index d4b2767e4a..b8e3162511 100644
--- a/doc/ChangeLog-1.9.3
+++ b/doc/ChangeLog-1.9.3
@@ -14297,7 +14297,7 @@ Thu Jun 10 09:10:08 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
Wed Jun 9 22:51:50 2010 Tanaka Akira <akr@fsij.org>
- * time.c (find_time_t): always outerpolate from past.
+ * time.c (find_time_t): always extrapolate from past.
[ruby-core:30672] reported by Benoit Daloze.
Wed Jun 9 22:13:08 2010 Tanaka Akira <akr@fsij.org>
@@ -76939,7 +76939,7 @@ Sat May 28 16:39:21 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
Sat May 28 05:15:44 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/ossl_x509store.c (ossl_x509stctx_set_time): should
- not set internal flag directry.
+ not set internal flag directory.
Sat May 28 02:00:11 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
diff --git a/eval.c b/eval.c
index 53d6d14328..6906a83bef 100644
--- a/eval.c
+++ b/eval.c
@@ -40,7 +40,7 @@ VALUE rb_eSysStackError;
/* Initializes the Ruby VM and builtin libraries.
* @retval 0 if succeeded.
- * @retval non-zero an error occured.
+ * @retval non-zero an error occurred.
*/
int
ruby_setup(void)
@@ -69,7 +69,7 @@ ruby_setup(void)
/* Calls ruby_setup() and check error.
*
- * Prints errors and calls exit(3) if an error occured.
+ * Prints errors and calls exit(3) if an error occurred.
*/
void
ruby_init(void)
@@ -84,7 +84,7 @@ ruby_init(void)
/*! Processes command line arguments and compiles the Ruby source to execute.
*
* This function does:
- * \li Processses the given command line flags and arguments for ruby(1)
+ * \li Processes the given command line flags and arguments for ruby(1)
* \li compiles the source code from the given argument, -e or stdin, and
* \li returns the compiled source as an opaque pointer to an internal data structure
*
@@ -151,7 +151,7 @@ ruby_finalize(void)
* resources used by the VM.
*
* @param ex Default value to the return value.
- * @return If an error occured returns a non-zero. If otherwise, returns the
+ * @return If an error occurred returns a non-zero. If otherwise, returns the
* given ex.
* @note This function does not raise any exception.
*/
@@ -297,7 +297,7 @@ ruby_executable_node(void *n, int *status)
}
/*! Runs the given compiled source and exits this process.
- * @retval 0 if successfully run thhe source
+ * @retval 0 if successfully run the source
* @retval non-zero if an error occurred.
*/
int
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index f08dce40a4..d6046f3744 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -2553,7 +2553,7 @@ BigDecimal_sign(VALUE self)
/*
* call-seq: BigDecimal.save_exception_mode { ... }
*
- * Excecute the provided block, but preserve the exception mode
+ * Execute the provided block, but preserve the exception mode
*
* BigDecimal.save_exception_mode do
* BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
@@ -2582,7 +2582,7 @@ BigDecimal_save_exception_mode(VALUE self)
/*
* call-seq: BigDecimal.save_rounding_mode { ... }
*
- * Excecute the provided block, but preserve the rounding mode
+ * Execute the provided block, but preserve the rounding mode
*
* BigDecimal.save_exception_mode do
* BigDecimal.mode(BigDecimal::ROUND_MODE, :up)
@@ -2607,7 +2607,7 @@ BigDecimal_save_rounding_mode(VALUE self)
/*
* call-seq: BigDecimal.save_limit { ... }
*
- * Excecute the provided block, but preserve the precision limit
+ * Execute the provided block, but preserve the precision limit
*
* BigDecimal.limit(100)
* puts BigDecimal.limit
@@ -3266,7 +3266,7 @@ static int gfCheckVal = 1; /* Value checking flag in VpNmlz() */
static Real *VpConstOne; /* constant 1.0 */
static Real *VpPt5; /* constant 0.5 */
-#define maxnr 100UL /* Maximum iterations for calcurating sqrt. */
+#define maxnr 100UL /* Maximum iterations for calculating sqrt. */
/* used in VpSqrt() */
/* ETC */
@@ -3690,7 +3690,7 @@ VpNumOfChars(Real *vp,const char *pszFmt)
* [Input]
* BaseVal: Base value(assigned to BASE) for Vp calculation.
* It must be the form BaseVal=10**n.(n=1,2,3,...)
- * If Base <= 0L,then the BASE will be calcurated so
+ * If Base <= 0L,then the BASE will be calculated so
* that BASE is as large as possible satisfying the
* relation MaxVal <= BASE*(BASE+1). Where the value
* MaxVal is the largest value which can be represented
@@ -4415,7 +4415,7 @@ VpSetPTR(Real *a, Real *b, Real *c, size_t *a_pos, size_t *b_pos, size_t *c_pos,
}
/*
- * Return number og significant digits
+ * Return number of significant digits
* c = a * b , Where a = a0a1a2 ... an
* b = b0b1b2 ... bm
* c = c0c1c2 ... cl
@@ -4651,7 +4651,7 @@ VpDivd(Real *c, Real *r, Real *a, Real *b)
}
/* The first few word digits of r and b is the same and */
/* the first different word digit of w is greater than that */
- /* of b, so quotinet is 1 and just subtract b from r. */
+ /* of b, so quotient is 1 and just subtract b from r. */
borrow = 0; /* quotient=1, then just r-b */
ind_b = b->Prec - 1;
ind_r = ind_c + ind_b;
@@ -4853,7 +4853,7 @@ VpComp(Real *a, Real *b)
goto Exit;
}
- /* a and b have same sign, && signe!=0,then compare exponent */
+ /* a and b have same sign, && sign!=0,then compare exponent */
if (a->exponent > b->exponent) {
val = VpGetSign(a);
goto Exit;
@@ -4936,7 +4936,7 @@ VPrint(FILE *fp, const char *cntl_chr, Real *a)
j = 0;
nd = nc = 0; /* nd : number of digits in fraction part(every 10 digits, */
/* nd<=10). */
- /* nc : number of caracters printed */
+ /* nc : number of characters printed */
ZeroSup = 1; /* Flag not to print the leading zeros as 0.00xxxxEnn */
while (*(cntl_chr + j)) {
if (*(cntl_chr + j) == '%' && *(cntl_chr + j + 1) != '%') {
@@ -5710,9 +5710,9 @@ Exit:
VP_EXPORT int
VpMidRound(Real *y, unsigned short f, ssize_t nf)
/*
- * Round reletively from the decimal point.
+ * Round relatively from the decimal point.
* f: rounding mode
- * nf: digit location to round from the the decimal point.
+ * nf: digit location to round from the decimal point.
*/
{
/* fracf: any positive digit under rounding position? */
@@ -5782,7 +5782,7 @@ VpMidRound(Real *y, unsigned short f, ssize_t nf)
*/
/* now check all the remaining BDIGITS for zero-ness a whole BDIGIT at a time.
- if we spot any non-zeroness, that means that we foudn a positive digit under
+ if we spot any non-zeroness, that means that we found a positive digit under
rounding position, and we also found a positive digit under one further than
the rounding position, so both searches (to see if any such non-zero digit exists)
can stop */
diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h
index a04d1bbfea..ae32d5ffc5 100644
--- a/ext/bigdecimal/bigdecimal.h
+++ b/ext/bigdecimal/bigdecimal.h
@@ -97,7 +97,7 @@ extern VALUE rb_cBigDecimal;
#define VP_EXCEPTION_OVERFLOW ((unsigned short)0x0001) /* 0x0008) */
#define VP_EXCEPTION_ZERODIVIDE ((unsigned short)0x0010)
-/* Following 2 exceptions cann't controlled by user */
+/* Following 2 exceptions can't controlled by user */
#define VP_EXCEPTION_OP ((unsigned short)0x0020)
#define VP_EXCEPTION_MEMORY ((unsigned short)0x0040)
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index e9b385c7fe..113b2bf5a9 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -12,7 +12,7 @@
* maintainers:
* - Takaaki Tateishi (ttate@kt.jaist.ac.jp)
*
- * doumentation:
+ * documentation:
* - Vincent Batts (vbatts@hashbangbash.com)
*/
@@ -465,7 +465,7 @@ curses_beep(VALUE obj)
/*
* Document-method: Curses.flash
*
- * Flashs the screen, for visual alarm on the terminal, if possible;
+ * Flashes the screen, for visual alarm on the terminal, if possible;
* otherwise it sounds the alert.
*
* see also Curses.beep
@@ -1129,7 +1129,7 @@ curses_init_color(VALUE obj, VALUE color, VALUE r, VALUE g, VALUE b)
/*
* Document-method: Curses.has_colors?
*
- * Returns +true+ or +false+ depending on whether the terminal has color capbilities.
+ * Returns +true+ or +false+ depending on whether the terminal has color capabilities.
*/
static VALUE
curses_has_colors(VALUE obj)
@@ -1478,7 +1478,7 @@ window_s_allocate(VALUE class)
* Document-method: Curses::Window.new
* call-seq: new(height, width, top, left)
*
- * Contruct a new Curses::Window with constraints of
+ * Construct a new Curses::Window with constraints of
* +height+ lines, +width+ columns, begin at +top+ line, and begin +left+ most column.
*
* A new window using full screen is called as
@@ -1506,7 +1506,7 @@ window_initialize(VALUE obj, VALUE h, VALUE w, VALUE top, VALUE left)
* Document-method: Curses::Window.subwin
* call-seq: subwin(height, width, top, left)
*
- * Contruct a new subwindow with constraints of
+ * Construct a new subwindow with constraints of
* +height+ lines, +width+ columns, begin at +top+ line, and begin +left+ most column.
*
*/
@@ -2352,7 +2352,7 @@ window_bkgd(VALUE obj, VALUE ch)
/*
* Document-method: Curses::Window.getbkgd
*
- * Returns an Interer (+ch+) for the character property in the current window.
+ * Returns an Integer (+ch+) for the character property in the current window.
*/
static VALUE
window_getbkgd(VALUE obj)
@@ -2501,7 +2501,7 @@ window_timeout(VALUE obj, VALUE delay)
* call-seq:
* new(height, width)
*
- * Contruct a new Curses::Pad with constraints of +height+ lines, +width+
+ * Construct a new Curses::Pad with constraints of +height+ lines, +width+
* columns
*
*/
@@ -2530,7 +2530,7 @@ pad_initialize(VALUE obj, VALUE h, VALUE w)
* call-seq:
* subpad(height, width, begin_x, begin_y)
*
- * Contruct a new subpad with constraints of +height+ lines, +width+ columns,
+ * Construct a new subpad with constraints of +height+ lines, +width+ columns,
* begin at +begin_x+ line, and +begin_y+ columns on the pad.
*
*/
@@ -3581,10 +3581,10 @@ Init_curses(void)
#endif
#ifdef KEY_SR
/* Document-const: KEY_SR
- * Scroll 1 line backware (reverse)
+ * Scroll 1 line backward (reverse)
*/
/* Document-const: SR
- * Scroll 1 line backware (reverse)
+ * Scroll 1 line backward (reverse)
*/
rb_curses_define_const(KEY_SR);
rb_define_const(mKey, "SR", INT2NUM(KEY_SR));
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 49fa7c81ac..691eecde35 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -1,7 +1,7 @@
/*
* ext/dl/dl.c
*
- * doumentation:
+ * documentation:
* - Vincent Batts (vbatts@hashbangbash.com)
*
*/
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index 82b94a1018..d981f9cca4 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -421,7 +421,7 @@ ossl_sslctx_session_new_cb(SSL *ssl, SSL_SESSION *sess)
}
/*
- * return 0 which means to OpenSSL that the the session is still
+ * return 0 which means to OpenSSL that the session is still
* valid (since we created Ruby Session object) and was not freed by us
* with SSL_SESSION_free(). Call SSLContext#remove_session(sess) in
* session_get_cb block if you don't want OpenSSL to cache the session
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index 53f5e7cddd..2e30ff58c0 100644
--- a/ext/pathname/pathname.c
+++ b/ext/pathname/pathname.c
@@ -1155,7 +1155,7 @@ path_unlink(VALUE self)
* Creates a new Pathname object from the given string, +path+, and returns
* pathname object.
*
- * In order to use this constuctor, you must first require the Pathname
+ * In order to use this constructor, you must first require the Pathname
* standard library extension.
*
* require 'pathname'
diff --git a/ext/psych/yaml/yaml.h b/ext/psych/yaml/yaml.h
index acd72ad3a3..d7777c6bab 100644
--- a/ext/psych/yaml/yaml.h
+++ b/ext/psych/yaml/yaml.h
@@ -1089,7 +1089,7 @@ typedef struct yaml_parser_s {
yaml_error_type_t error;
/** Error description. */
const char *problem;
- /** The byte about which the problem occured. */
+ /** The byte about which the problem occurred. */
size_t problem_offset;
/** The problematic value (@c -1 is none). */
int problem_value;
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index a4c51c646a..388f5e4bf6 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -302,7 +302,7 @@ readline_get(VALUE prompt)
* 1. stdin is not tty.
* 2. stdin was closed. (errno is EBADF after called isatty(2).)
*
- * This method supports thread. Switchs the thread context when waits
+ * This method supports thread. Switches the thread context when waits
* inputting line.
*
* Supports line edit when inputs line. Provides VI and Emacs editing mode.
diff --git a/ext/sdbm/_sdbm.c b/ext/sdbm/_sdbm.c
index 874239a276..847eb2aaf6 100644
--- a/ext/sdbm/_sdbm.c
+++ b/ext/sdbm/_sdbm.c
@@ -156,7 +156,7 @@ sdbm_open(register char *file, register int flags, register int mode)
if (file == NULL || !*file)
return errno = EINVAL, (DBM *) NULL;
/*
- * need space for two seperate filenames
+ * need space for two separate filenames
*/
n = strlen(file) * 2 + strlen(DIRFEXT) + strlen(PAGFEXT) + 2;
@@ -392,7 +392,7 @@ makroom(register DBM *db, long int hash, int need)
newp = (hash & db->hmask) | (db->hmask + 1);
debug(("newp: %ld\n", newp));
/*
- * write delay, read avoidence/cache shuffle:
+ * write delay, read avoidance/cache shuffle:
* select the page for incoming pair: if key is to go to the new page,
* write out the previous one, and copy the new one over, thus making
* it the current page. If not, simply write the new page, and we are
diff --git a/ext/tk/README.1st b/ext/tk/README.1st
index 96564cc67b..4ffef34f1d 100644
--- a/ext/tk/README.1st
+++ b/ext/tk/README.1st
@@ -1,7 +1,7 @@
If you want to use Ruby/Tk (tk.rb and so on), you must have tcltklib.so
which is working correctly. When you have some troubles on compiling,
please read README.tcltklib and README.ActiveTcl.
-Even if there is a tcltklib.so on your Ruby library directry, it will not
+Even if there is a tcltklib.so on your Ruby library directory, it will not
work without Tcl/Tk libraries (e.g. libtcl8.4.so) on your environment.
You must also check that your Tcl/Tk is installed properly.
diff --git a/ext/tk/README.ActiveTcl b/ext/tk/README.ActiveTcl
index b7f023c91b..990f612648 100644
--- a/ext/tk/README.ActiveTcl
+++ b/ext/tk/README.ActiveTcl
@@ -57,6 +57,6 @@ Based on it, the Tcl interpreter changes auto_path variable's value.
Then, you'll be able to use Tcl/Tk extension libraries included in the
ActiveTcl package (e.g. call TkPackage.require('BWidget'), and then,
-use functions/widgets of BWidget extention).
+use functions/widgets of BWidget extension).
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
diff --git a/ext/tk/README.tcltklib b/ext/tk/README.tcltklib
index 0064586373..cf387694b8 100644
--- a/ext/tk/README.tcltklib
+++ b/ext/tk/README.tcltklib
@@ -80,11 +80,11 @@ some or all of the following options.
--with-tk-dir=<path>
equal to "--with-tk-include=<path>/include --with-tk-lib=<path>/lib"
- --with-tcl-include=<dir> the directry contains 'tcl.h'
- --with-tk-include=<dir> the directry contains 'tk.h'
+ --with-tcl-include=<dir> the directory contains 'tcl.h'
+ --with-tk-include=<dir> the directory contains 'tk.h'
- --with-tcl-lib=<dir> the directry contains 'libtcl<version>.so'
- --with-tk-lib=<dir> the directry contains 'libtk<version>.so'
+ --with-tcl-lib=<dir> the directory contains 'libtcl<version>.so'
+ --with-tk-lib=<dir> the directory contains 'libtk<version>.so'
--enable-mac-tcltk-framework (MacOS X) use Tcl/Tk framework
(Obsolete. Please use '--enable-tcltk-framework'.)
@@ -116,12 +116,12 @@ some or all of the following options.
--with-X11-dir=<path>
equal to "--with-X11-include=<path>/include --with-X11-lib=<path>/lib"
- --with-X11-include=<dir> the directry contais X11 header files
- --with-X11-lib=<dir> the directry contais X11 libraries
+ --with-X11-include=<dir> the directory contais X11 header files
+ --with-X11-lib=<dir> the directory contais X11 libraries
If you forgot to give the options when do 'configure' on toplevel
-directry of Ruby sources, please try something like as the followings.
+directory of Ruby sources, please try something like as the followings.
$ cd ext/tcltklib
$ rm Makefile
diff --git a/ext/tk/lib/tk/image.rb b/ext/tk/lib/tk/image.rb
index d2b0305dcd..972383982f 100644
--- a/ext/tk/lib/tk/image.rb
+++ b/ext/tk/lib/tk/image.rb
@@ -132,7 +132,7 @@ end
# exists to allow additional image file formats to be added easily.
#
# This class documentation is a copy from the original Tcl/Tk at
-# http://www.tcl.tk/man/tcl8.5/TkCmd/photo.htm with some rewrited parts.
+# http://www.tcl.tk/man/tcl8.5/TkCmd/photo.htm with some rewritten parts.
class TkPhotoImage<TkImage
NullArgOptionKeys = [ "shrink", "grayscale" ]
diff --git a/ext/tk/lib/tkextlib/SUPPORT_STATUS b/ext/tk/lib/tkextlib/SUPPORT_STATUS
index 522039b11a..865181a766 100644
--- a/ext/tk/lib/tkextlib/SUPPORT_STATUS
+++ b/ext/tk/lib/tkextlib/SUPPORT_STATUS
@@ -3,7 +3,7 @@
*** RELEASE_DATE of the libraries => see 'tkextlib/version.rb' ***
-The following list shows *CURRENT* status when this file was modifyed
+The following list shows *CURRENT* status when this file was modified
at last. If you want to add other Tcl/Tk extensions to the planed list
(or change its status position), please request them at the ruby-talk,
ruby-list, or ruby-dev ML. Although we cannot promise to support your
@@ -34,7 +34,7 @@ script may give you some hints about that.
If you cannot use installed Tcl/Tk extension, please check the
followings.
- (1) On your Tcl/Tk, does the extention work?
+ (1) On your Tcl/Tk, does the extension work?
(2) Do DLL libraries of the extension exist on DLL load-path?
(See also "<ruby archive>/ext/tcltklib/README.ActiveTcl")
@@ -44,8 +44,8 @@ script may give you some hints about that.
The check results may request you to do some setup operations
before using the extension. If so, then please write the step
- of setup oprations into the "setup.rb" file in the directory
- of the wrapper libraries for the extention (It is the wrapper
+ of setup operations into the "setup.rb" file in the directory
+ of the wrapper libraries for the extension (It is the wrapper
libraries have the standard structure of the libraries in this
directory). The "setup" file is required before requiring the
Tcl library package (TkPackage.require(<libname>)).
diff --git a/ext/tk/lib/tkextlib/tile/style.rb b/ext/tk/lib/tkextlib/tile/style.rb
index 108d81f88b..83a0c9a2e8 100644
--- a/ext/tk/lib/tkextlib/tile/style.rb
+++ b/ext/tk/lib/tkextlib/tile/style.rb
@@ -21,8 +21,8 @@ class << Tk::Tile::Style
TkCommandNames = ['style'.freeze].freeze
# --- Tk::Tile::Style.__define_wrapper_proc_for_compatibility__! ---
- # On Ttk (Tile) extension, 'style' command has imcompatible changes
- # depend on the version of the extention. It requires modifying the
+ # On Ttk (Tile) extension, 'style' command has incompatible changes
+ # depend on the version of the extension. It requires modifying the
# Tcl/Tk scripts to define local styles. The rule for modification
# is a simple one. But, if users want to keep compatibility between
# versions of the extension, they will have to contrive to do that.
diff --git a/ext/tk/sample/figmemo_sample.rb b/ext/tk/sample/figmemo_sample.rb
index 25ec618fe8..da6c41797e 100644
--- a/ext/tk/sample/figmemo_sample.rb
+++ b/ext/tk/sample/figmemo_sample.rb
@@ -5,7 +5,7 @@ begin
# try to use Img extension
require 'tkextlib/tkimg'
rescue Exception
- # cannot use Img extention --> ignore
+ # cannot use Img extension --> ignore
end
diff --git a/ext/tk/sample/msgs_tk/README b/ext/tk/sample/msgs_tk/README
index 062ec20cf8..949ee7a896 100644
--- a/ext/tk/sample/msgs_tk/README
+++ b/ext/tk/sample/msgs_tk/README
@@ -1,4 +1,4 @@
Almost all of Message-Catalog files in this directory are quoted
from Tcl/Tk8.5a1 source archive (only a little are modified for
'tkmsgcat-load_tk.rb'). Please read the file 'license.terms' in
-this directry (That was included in demo directory of Tcl/Tk8.5a1).
+this directory (That was included in demo directory of Tcl/Tk8.5a1).
diff --git a/ext/tk/sample/tkextlib/blt/readme.txt b/ext/tk/sample/tkextlib/blt/readme.txt
index 4183c01ecb..8ac1044b0b 100644
--- a/ext/tk/sample/tkextlib/blt/readme.txt
+++ b/ext/tk/sample/tkextlib/blt/readme.txt
@@ -1,2 +1,2 @@
The scripts and image files in this directory are based on demo files
-of Tcl/Tk's BLT extention.
+of Tcl/Tk's BLT extension.
diff --git a/ext/tk/sample/tkextlib/bwidget/Orig_LICENSE.txt b/ext/tk/sample/tkextlib/bwidget/Orig_LICENSE.txt
index 0c4c16fe47..b1241a6501 100644
--- a/ext/tk/sample/tkextlib/bwidget/Orig_LICENSE.txt
+++ b/ext/tk/sample/tkextlib/bwidget/Orig_LICENSE.txt
@@ -2,8 +2,8 @@
######################################################################
### The following text is the original 'LICENSE.txt' of BWidget ###
### extension. ###
- ### Original Tcl source files are not include in this directry, ###
- ### because of all of them are rewrited to Ruby files. ###
+ ### Original Tcl source files are not include in this directory, ###
+ ### because of all of them are rewritten to Ruby files. ###
### However, the bitmap data files ('bwidgtet.xbm' and 'x1.xbm') ###
### included in this directory are quoted from BWidget source ###
### archive. So, those bitmaps are under the following license. ###
diff --git a/ext/tk/sample/tkextlib/iwidgets/catalog_demo/Orig_LICENSE.txt b/ext/tk/sample/tkextlib/iwidgets/catalog_demo/Orig_LICENSE.txt
index 22f787609d..1f33d9e55d 100644
--- a/ext/tk/sample/tkextlib/iwidgets/catalog_demo/Orig_LICENSE.txt
+++ b/ext/tk/sample/tkextlib/iwidgets/catalog_demo/Orig_LICENSE.txt
@@ -1,9 +1,9 @@
#######################################################################
- ### The following text is the original 'license.terms' of iwidges ###
+ ### The following text is the original 'license.terms' of iwidgets ###
### extension. ###
- ### Original Tcl source files are not include in this directry, ###
- ### because of all of them are rewrited to Ruby files. ###
+ ### Original Tcl source files are not include in this directory, ###
+ ### because of all of them are rewritten to Ruby files. ###
### However, the image data files in the 'images' directory are ###
### quoted from iwidgets source archive. ###
#######################################################################
diff --git a/ext/tk/sample/tkextlib/tcllib/Orig_LICENSE.txt b/ext/tk/sample/tkextlib/tcllib/Orig_LICENSE.txt
index 272853870c..b02ea605d7 100644
--- a/ext/tk/sample/tkextlib/tcllib/Orig_LICENSE.txt
+++ b/ext/tk/sample/tkextlib/tcllib/Orig_LICENSE.txt
@@ -2,8 +2,8 @@
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>> The following text is the original 'license.term' of tklib <<<
>>> extension. <<<
- >>> Original Tcl files are not include in this directry, because <<<
- >>> of all of them are rewrited to Ruby files. <<<
+ >>> Original Tcl files are not include in this directory, because <<<
+ >>> of all of them are rewritten to Ruby files. <<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
This software is copyrighted by Ajuba Solutions and other parties.
diff --git a/ext/tk/sample/tkextlib/tkimg/demo.rb b/ext/tk/sample/tkextlib/tkimg/demo.rb
index d453e8ee9d..8016c263a6 100644
--- a/ext/tk/sample/tkextlib/tkimg/demo.rb
+++ b/ext/tk/sample/tkextlib/tkimg/demo.rb
@@ -2,7 +2,7 @@
#
# Tk::Img demo
#
-# -- This script is based on demo.tcl of Tcl/Tk's 'Img' extention.
+# -- This script is based on demo.tcl of Tcl/Tk's 'Img' extension.
# Image data in this script is those of demo.tcl.
# Please read 'license_terms_of_Img_extension' file.
#
diff --git a/ext/tk/sample/tkextlib/tkimg/readme.txt b/ext/tk/sample/tkextlib/tkimg/readme.txt
index 8e4b0163b1..8fd1a3e67d 100644
--- a/ext/tk/sample/tkextlib/tkimg/readme.txt
+++ b/ext/tk/sample/tkextlib/tkimg/readme.txt
@@ -1,3 +1,3 @@
-The script 'demo.rb' is based on 'demo.tcl' of Tcl/Tk's 'Img' extention.
+The script 'demo.rb' is based on 'demo.tcl' of Tcl/Tk's 'Img' extension.
Image data in 'demo.rb' is those of 'demo.tcl'.
Please read 'license_terms_of_Img_extension' file.
diff --git a/ext/tk/sample/tkextlib/tktable/Orig_LICENSE.txt b/ext/tk/sample/tkextlib/tktable/Orig_LICENSE.txt
index dd176a7ccf..b06b0b463b 100644
--- a/ext/tk/sample/tkextlib/tktable/Orig_LICENSE.txt
+++ b/ext/tk/sample/tkextlib/tktable/Orig_LICENSE.txt
@@ -2,8 +2,8 @@
#######################################################################
### The following text is the original 'license.txt' of tktable ###
### extension. ###
- ### Original Tcl source files are not include in this directry, ###
- ### because of all of them are rewrited to Ruby files. ###
+ ### Original Tcl source files are not include in this directory, ###
+ ### because of all of them are rewritten to Ruby files. ###
### However, the image data file is quoted from iwidgets source ###
### archive. ###
#######################################################################
diff --git a/ext/tk/sample/tkextlib/treectrl/readme.txt b/ext/tk/sample/tkextlib/treectrl/readme.txt
index bda4f63d88..81e13b24aa 100644
--- a/ext/tk/sample/tkextlib/treectrl/readme.txt
+++ b/ext/tk/sample/tkextlib/treectrl/readme.txt
@@ -1,2 +1,2 @@
The scripts and image files in this directory are based on demo files
-of Tcl/Tk's TreeCtrl extention.
+of Tcl/Tk's TreeCtrl extension.
diff --git a/ext/tk/sample/tkextlib/vu/Orig_LICENSE.txt b/ext/tk/sample/tkextlib/vu/Orig_LICENSE.txt
index f5f2f770cf..f2e0edcf42 100644
--- a/ext/tk/sample/tkextlib/vu/Orig_LICENSE.txt
+++ b/ext/tk/sample/tkextlib/vu/Orig_LICENSE.txt
@@ -1,8 +1,8 @@
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>> The following text is the original 'license.txt' of vu extension. <<<
- >>> Original Tcl source files are not include in this directry, <<<
- >>> because of all of them are rewrited to Ruby files. <<<
+ >>> Original Tcl source files are not include in this directory, <<<
+ >>> because of all of them are rewritten to Ruby files. <<<
>>> However, the bitmap data file included in this directory is the <<<
>>> same file of vu extension. So, the bitmap data file is under the <<<
>>> following license. <<<
diff --git a/file.c b/file.c
index 2628cb5e5f..7d3431477e 100644
--- a/file.c
+++ b/file.c
@@ -3722,7 +3722,7 @@ ruby_enc_find_basename(const char *name, long *baselen, long *alllen, rb_encodin
*
* Returns the last component of the filename given in <i>file_name</i>,
* which can be formed using both <code>File::SEPARATOR</code> and
- * <code>File::ALT_SEPARETOR</code> as the separator when
+ * <code>File::ALT_SEPARATOR</code> as the separator when
* <code>File::ALT_SEPARATOR</code> is not <code>nil</code>. If
* <i>suffix</i> is given and present at the end of <i>file_name</i>,
* it is removed.
@@ -3779,7 +3779,7 @@ rb_file_s_basename(int argc, VALUE *argv)
*
* Returns all components of the filename given in <i>file_name</i>
* except the last one. The filename can be formed using both
- * <code>File::SEPARATOR</code> and <code>File::ALT_SEPARETOR</code> as the
+ * <code>File::SEPARATOR</code> and <code>File::ALT_SEPARATOR</code> as the
* separator when <code>File::ALT_SEPARATOR</code> is not <code>nil</code>.
*
* File.dirname("/home/gumby/work/ruby.rb") #=> "/home/gumby/work"
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 6a1bff72f8..8bfd351391 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -1782,7 +1782,7 @@ int ruby_vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
* @defgroup embed CRuby Embedding APIs
* CRuby interpreter APIs. These are APIs to embed MRI interpreter into your
* program.
- * These functions are not a part of Ruby extention library API.
+ * These functions are not a part of Ruby extension library API.
* Extension libraries of Ruby should not depend on these functions.
* @{
*/
diff --git a/io.c b/io.c
index b5aa6c6e32..7d9860992c 100644
--- a/io.c
+++ b/io.c
@@ -1598,7 +1598,7 @@ rb_io_seek_m(int argc, VALUE *argv, VALUE io)
* ios.pos = integer -> integer
*
* Seeks to the given position (in bytes) in <em>ios</em>.
- * It is not guranteed that seeking to the right position when <em>ios</em>
+ * It is not guaranteed that seeking to the right position when <em>ios</em>
* is textmode.
*
* f = File.new("testfile")
diff --git a/lib/base64.rb b/lib/base64.rb
index a240b730b4..98829f0d96 100644
--- a/lib/base64.rb
+++ b/lib/base64.rb
@@ -25,7 +25,7 @@ module Base64
# Returns the Base64-encoded version of +bin+.
# This method complies with RFC 2045.
- # Line feeds are added to every 60 encoded charactors.
+ # Line feeds are added to every 60 encoded characters.
#
# require 'base64'
# Base64.encode64("Now is the time for all good coders\nto learn Ruby")
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 07cb548406..3fb2fda34f 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -214,7 +214,7 @@ module Net
$stderr.puts("warning: Net::FTP#return_code= is obsolete and do nothing")
end
- # Contructs a socket with +host+ and +port+.
+ # Constructs a socket with +host+ and +port+.
#
# If SOCKSSocket is defined and the environment (ENV) defines
# SOCKS_SERVER, then a SOCKSSocket is returned, else a TCPSocket is
diff --git a/lib/optparse.rb b/lib/optparse.rb
index 469fde29ae..8a904ff0d7 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -737,7 +737,7 @@ class OptionParser
# OPTIONAL_ARGUMENT:: The switch requires an optional argument. (:OPTIONAL)
#
# Use like --switch=argument (long style) or -Xargument (short style). For
- # short style, only portion matched to argument pattern is dealed as
+ # short style, only portion matched to argument pattern is treated as
# argument.
#
ArgumentStyle = {}
diff --git a/lib/prettyprint.rb b/lib/prettyprint.rb
index eb498cc70a..5b1da330dd 100644
--- a/lib/prettyprint.rb
+++ b/lib/prettyprint.rb
@@ -320,7 +320,7 @@ class PrettyPrint
# Creates a new text object.
#
- # This contructor takes no arguments.
+ # This constructor takes no arguments.
#
# The workflow is to append a PrettyPrint::Text object to the buffer, and
# being able to call the buffer.last() to reference it.
@@ -359,7 +359,7 @@ class PrettyPrint
# Create a new Breakable object.
#
# Arguments:
- # * +sep+ String of the seperator
+ # * +sep+ String of the separator
# * +width+ Fixnum width of the +sep+
# * +q+ parent PrettyPrint object, to base from
def initialize(sep, width, q)
@@ -371,7 +371,7 @@ class PrettyPrint
@group.breakables.push self
end
- # Holds the seperator String
+ # Holds the separator String
#
# The +sep+ argument from ::new
attr_reader :obj
@@ -525,14 +525,14 @@ class PrettyPrint
@first = [true]
end
- # Add +obj+ to the text to be outputed.
+ # Add +obj+ to the text to be output.
#
# +width+ argument is here for compatibility. It is a noop argument.
def text(obj, width=nil)
@output << obj
end
- # Appends +sep+ to the text to be outputed. By default +sep+ is ' '
+ # Appends +sep+ to the text to be output. By default +sep+ is ' '
#
# +width+ argument is here for compatibility. It is a noop argument.
def breakable(sep=' ', width=nil)
diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb
index 1866d73efb..2a1f4d104c 100644
--- a/lib/racc/parser.rb
+++ b/lib/racc/parser.rb
@@ -37,7 +37,7 @@ end
# [--version] [--copyright] [--help] <var>grammarfile</var>
#
# [+filename+]
-# Racc grammar file. Any extention is permitted.
+# Racc grammar file. Any extension is permitted.
# [-o+outfile+, --output-file=+outfile+]
# A filename for output. default is <+filename+>.tab.rb
# [-O+filename+, --log-file=+filename+]
@@ -48,12 +48,12 @@ end
# [-v, --verbose]
# verbose mode. create +filename+.output file, like yacc's y.output file.
# [-g, --debug]
-# add debug code to parser class. To display debuggin information,
+# add debug code to parser class. To display debugging information,
# use this '-g' option and set @yydebug true in parser class.
# [-E, --embedded]
# Output parser which doesn't need runtime files (racc/parser.rb).
# [-C, --check-only]
-# Check syntax of racc grammer file and quit.
+# Check syntax of racc grammar file and quit.
# [-S, --output-status]
# Print messages time to time while compiling.
# [-l, --no-line-convert]
@@ -187,7 +187,7 @@ module Racc
Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1]
begin
require 'racc/cparse'
- # Racc_Runtime_Core_Version_C = (defined in extention)
+ # Racc_Runtime_Core_Version_C = (defined in extension)
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
unless new.respond_to?(:_racc_do_parse_c, true)
raise LoadError, 'old cparse.so'
diff --git a/lib/rake/name_space.rb b/lib/rake/name_space.rb
index e1cc0940b8..e4349e8a3d 100644
--- a/lib/rake/name_space.rb
+++ b/lib/rake/name_space.rb
@@ -1,6 +1,6 @@
module Rake
- # The NameSpace class will lookup task names in the the scope
+ # The NameSpace class will lookup task names in the scope
# defined by a +namespace+ command.
#
class NameSpace
diff --git a/lib/rdoc/rd/block_parser.rb b/lib/rdoc/rd/block_parser.rb
index dd15e1262e..b52454c689 100644
--- a/lib/rdoc/rd/block_parser.rb
+++ b/lib/rdoc/rd/block_parser.rb
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.4.9
-# from Racc grammer file "".
+# from Racc grammar file "".
#
require 'racc/parser.rb'
diff --git a/lib/rdoc/rd/inline_parser.rb b/lib/rdoc/rd/inline_parser.rb
index c3c1f4b030..693eecda21 100644
--- a/lib/rdoc/rd/inline_parser.rb
+++ b/lib/rdoc/rd/inline_parser.rb
@@ -1,7 +1,7 @@
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.4.9
-# from Racc grammer file "".
+# from Racc grammar file "".
#
require 'racc/parser.rb'
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index b5f58fefa0..cbab206d48 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -328,7 +328,7 @@ module Gem
end
##
- # The path the the data directory specified by the gem name. If the
+ # The path to the data directory specified by the gem name. If the
# package is not available as a gem, return nil.
def self.datadir(gem_name)
diff --git a/lib/rubygems/commands/list_command.rb b/lib/rubygems/commands/list_command.rb
index d9b7a9535e..71b8a93fad 100644
--- a/lib/rubygems/commands/list_command.rb
+++ b/lib/rubygems/commands/list_command.rb
@@ -3,7 +3,7 @@ require 'rubygems/commands/query_command'
##
# An alternate to Gem::Commands::QueryCommand that searches for gems starting
-# with the the supplied argument.
+# with the supplied argument.
class Gem::Commands::ListCommand < Gem::Commands::QueryCommand
diff --git a/lib/shell.rb b/lib/shell.rb
index 8c91090414..76af3b6f86 100644
--- a/lib/shell.rb
+++ b/lib/shell.rb
@@ -48,7 +48,7 @@ require "shell/process-controller"
# end
# end
#
-# === Temp file creationg with self
+# === Temp file creation with self
#
# This example is identical to the first, except we're using
# CommandProcessor#transact.
diff --git a/lib/sync.rb b/lib/sync.rb
index dc513fc16b..09542d59f9 100644
--- a/lib/sync.rb
+++ b/lib/sync.rb
@@ -315,7 +315,7 @@ end
Synchronizer_m = Sync_m
##
-# A class that providesa two-phase lock with a counter. See Sync_m for
+# A class that provides two-phase lock with a counter. See Sync_m for
# details.
class Sync
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index 18d4fb683d..2161768576 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -39,7 +39,7 @@ class Dir
# Dir.mktmpdir creates a temporary directory.
#
# The directory is created with 0700 permission.
- # Application should not change the permission to make the temporary directory accesible from other users.
+ # Application should not change the permission to make the temporary directory accessible from other users.
#
# The prefix and suffix of the name of the directory is specified by
# the optional first argument, <i>prefix_suffix</i>.
diff --git a/missing/crypt.c b/missing/crypt.c
index 68a4d2bf13..366fba0919 100644
--- a/missing/crypt.c
+++ b/missing/crypt.c
@@ -628,7 +628,7 @@ des_setkey(key)
/*
* Encrypt (or decrypt if num_iter < 0) the 8 chars at "in" with abs(num_iter)
- * iterations of DES, using the the given 24-bit salt and the pre-computed key
+ * iterations of DES, using the given 24-bit salt and the pre-computed key
* schedule, and store the resulting 8 chars at "out" (in == out is permitted).
*
* NOTE: the performance of this routine is critically dependent on your
diff --git a/missing/file.h b/missing/file.h
index 2d491d0fc1..241d716563 100644
--- a/missing/file.h
+++ b/missing/file.h
@@ -15,7 +15,7 @@
#ifndef R_OK
# define R_OK 4 /* test whether readable. */
# define W_OK 2 /* test whether writable. */
-# define X_OK 1 /* test whether execubale. */
+# define X_OK 1 /* test whether executable. */
# define F_OK 0 /* test whether exist. */
#endif
diff --git a/missing/flock.c b/missing/flock.c
index 435d66aefb..829f431ddc 100644
--- a/missing/flock.c
+++ b/missing/flock.c
@@ -4,7 +4,7 @@
#if defined _WIN32
#elif defined HAVE_FCNTL && defined HAVE_FCNTL_H && !defined(__native_client__)
-/* These are the flock() constants. Since this sytems doesn't have
+/* These are the flock() constants. Since this systems doesn't have
flock(), the values of the constants are probably not available.
*/
# ifndef LOCK_SH
@@ -73,7 +73,7 @@ flock(int fd, int operation)
# define F_TEST 3 /* Test a region for other processes locks */
# endif
-/* These are the flock() constants. Since this sytems doesn't have
+/* These are the flock() constants. Since this systems doesn't have
flock(), the values of the constants are probably not available.
*/
# ifndef LOCK_SH
diff --git a/nacl/README.nacl b/nacl/README.nacl
index e70f272715..471c3b5e5f 100644
--- a/nacl/README.nacl
+++ b/nacl/README.nacl
@@ -12,7 +12,7 @@ You need to install the following things before building NaCl port of Ruby.
== Steps
(1) Extract all files from the tarball:
$ tar xzf ruby-X.Y.Z.tar.gz
-(2) Set NACL_SDK_ROOT environment vairanble to the path to the Native Client SDK you installed:
+(2) Set NACL_SDK_ROOT environment variable to the path to the Native Client SDK you installed:
$ export NACL_SDK_ROOT=/home/yugui/src/nacl_sdk/pepper_16
(3) Configure
$ ./configure --prefix=/tmp/nacl-ruby --host=x86_64-nacl --with-baseruby=/path/to/ruby-1.9.3
diff --git a/process.c b/process.c
index afb2885c15..66e910af71 100644
--- a/process.c
+++ b/process.c
@@ -2118,7 +2118,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, VAL
has_meta = 1;
}
if (!has_meta) {
- /* avoid shell since no shell meta charactor found. */
+ /* avoid shell since no shell meta character found. */
eargp->use_shell = 0;
}
if (!eargp->use_shell) {
@@ -2346,7 +2346,7 @@ static int rb_exec_without_timer_thread(const struct rb_execarg *eargp, char *er
* If _commandline_ is simple enough,
* no meta characters, no shell reserved word and no special built-in,
* Ruby invokes the command directly without shell.
- * You can force shell invocation by adding ";" for _commandline_ (because ";" is a meta characetr).
+ * You can force shell invocation by adding ";" for _commandline_ (because ";" is a meta character).
* Note that this behavior is observable by pid obtained
* (return value of spawn() and IO#pid for IO.popen) is the pid of the invoked command, not shell.
*
diff --git a/range.c b/range.c
index df4ad474cc..feabf6b9bf 100644
--- a/range.c
+++ b/range.c
@@ -1238,7 +1238,7 @@ static VALUE
range_alloc(VALUE klass)
{
/* rb_struct_alloc_noinit itself should not be used because
- * rb_marshal_define_compat uses equality of allocaiton function */
+ * rb_marshal_define_compat uses equality of allocation function */
return rb_struct_alloc_noinit(klass);
}
diff --git a/ruby.c b/ruby.c
index 669e8024f6..8c8c4a1a66 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1795,7 +1795,7 @@ set_arg0(VALUE val, ID id)
/*! Sets the current script name to this value.
*
- * This is similiar to <code>$0 = name</code> in Ruby level but also affects
+ * This is similar to <code>$0 = name</code> in Ruby level but also affects
* <code>Method#location</code> and others.
*/
void
diff --git a/string.c b/string.c
index 7c6c6c8c5b..c45179f58d 100644
--- a/string.c
+++ b/string.c
@@ -1093,7 +1093,7 @@ rb_enc_strlen_cr(const char *p, const char *e, rb_encoding *enc, int *cr)
/*
* UTF-8 leading bytes have either 0xxxxxxx or 11xxxxxx
- * bit represention. (see http://en.wikipedia.org/wiki/UTF-8)
+ * bit representation. (see http://en.wikipedia.org/wiki/UTF-8)
* Therefore, following pseudo code can detect UTF-8 leading byte.
*
* if (!(byte & 0x80))
diff --git a/thread.c b/thread.c
index c2edb7e273..17b7709194 100644
--- a/thread.c
+++ b/thread.c
@@ -1258,7 +1258,7 @@ call_without_gvl(void *(*func)(void *), void *data1,
/*
* rb_thread_call_without_gvl - permit concurrent/parallel execution.
* rb_thread_call_without_gvl2 - permit concurrent/parallel execution
- * without interrupt proceess.
+ * without interrupt process.
*
* rb_thread_call_without_gvl() does:
* (1) Check interrupts.
@@ -1499,7 +1499,7 @@ thread_s_pass(VALUE klass)
/*
* rb_threadptr_pending_interrupt_* - manage asynchronous error queue
*
- * Async events such as an exception throwed by Thread#raise,
+ * Async events such as an exception thrown by Thread#raise,
* Thread#kill and thread termination (after main thread termination)
* will be queued to th->pending_interrupt_queue.
* - clear: clear the queue.
@@ -1699,7 +1699,7 @@ handle_interrupt_arg_check_i(VALUE key, VALUE val)
* ::handle_interrupt block we can purposefully handle RuntimeError exceptions.
*
* th = Thread.new do
- * Thead.handle_interrupt(RuntimeError => :never) {
+ * Thread.handle_interrupt(RuntimeError => :never) {
* begin
* # You can write resource allocation code safely.
* Thread.handle_interrupt(RuntimeError => :immediate) {
@@ -1807,7 +1807,7 @@ rb_thread_s_handle_interrupt(VALUE self, VALUE mask_arg)
* call-seq:
* target_thread.pending_interrupt?(error = nil) -> true/false
*
- * Returns whether or not the asychronous queue is empty for the target thread.
+ * Returns whether or not the asynchronous queue is empty for the target thread.
*
* If +error+ is given, then check only for +error+ type deferred events.
*
@@ -1960,7 +1960,7 @@ rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing)
if (err == Qundef) {
/* no error */
}
- else if (err == eKillSignal /* Thread#kill receieved */ ||
+ else if (err == eKillSignal /* Thread#kill received */ ||
err == eTerminateSignal /* Terminate thread */ ||
err == INT2FIX(TAG_FATAL) /* Thread.exit etc. */ ) {
rb_threadptr_to_kill(th);
@@ -2749,7 +2749,7 @@ rb_thread_local_aref(VALUE thread, ID id)
* thr[sym] -> obj or nil
*
* Attribute Reference---Returns the value of a fiber-local variable (current thread's root fiber
- * if not explicitely inside a Fiber), using either a symbol or a string name.
+ * if not explicitly inside a Fiber), using either a symbol or a string name.
* If the specified variable does not exist, returns +nil+.
*
* [
@@ -4880,7 +4880,7 @@ exec_recursive_i(VALUE tag, struct exec_recursive_params *p)
* to Qtrue, otherwise the outermost func will be called. In the latter case,
* all inner func are short-circuited by throw.
* Implementation details: the value thrown is the recursive list which is
- * proper to the current method and unlikely to be catched anywhere else.
+ * proper to the current method and unlikely to be caught anywhere else.
* list[recursive_key] is used as a flag for the outermost call.
*/
diff --git a/time.c b/time.c
index 6b457f22ff..ff19728d1c 100644
--- a/time.c
+++ b/time.c
@@ -3030,7 +3030,7 @@ find_time_t(struct tm *tptr, int utc_p, time_t *tp)
}
}
- /* Given argument has no corresponding time_t. Let's outerpolation. */
+ /* Given argument has no corresponding time_t. Let's extrapolate. */
/*
* `Seconds Since the Epoch' in SUSv3:
* tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 +
@@ -4520,8 +4520,8 @@ strftimev(const char *fmt, VALUE time, rb_encoding *enc)
*
* This method is similar to strftime() function defined in ISO C and POSIX.
*
- * While all directives are locale independant since Ruby 1.9, %Z is platform
- * dependant.
+ * While all directives are locale independent since Ruby 1.9, %Z is platform
+ * dependent.
* So, the result may differ even if the same format string is used in other
* systems such as C.
*
diff --git a/vm.c b/vm.c
index 9f76e9ac24..ccc12a7b59 100644
--- a/vm.c
+++ b/vm.c
@@ -2463,7 +2463,7 @@ Init_VM(void)
/* ::RubyVM::DEFAULT_PARAMS
* This constant variable shows VM's default parameters.
- * Note that changing these values does not affect VM exection.
+ * Note that changing these values does not affect VM execution.
* Specification is not stable and you should not depend on this value.
* Of course, this constant is MRI specific.
*/
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)