Permalink
Browse files

fix typos. Patch by k_takata.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 67964f2 commit edb98f8b910b00be16868b21116924cffad785b9 @k-tsj k-tsj committed May 19, 2013
Showing with 132 additions and 132 deletions.
  1. +5 −5 README.EXT
  2. +1 −1 README.EXT.ja
  3. +1 −1 bignum.c
  4. +2 −2 compile.c
  5. +1 −1 doc/ChangeLog-1.8.0
  6. +2 −2 doc/ChangeLog-1.9.3
  7. +5 −5 eval.c
  8. +12 −12 ext/bigdecimal/bigdecimal.c
  9. +1 −1 ext/bigdecimal/bigdecimal.h
  10. +10 −10 ext/curses/curses.c
  11. +1 −1 ext/dl/dl.c
  12. +1 −1 ext/openssl/ossl_ssl.c
  13. +1 −1 ext/pathname/pathname.c
  14. +1 −1 ext/psych/yaml/yaml.h
  15. +1 −1 ext/readline/readline.c
  16. +2 −2 ext/sdbm/_sdbm.c
  17. +1 −1 ext/tk/README.1st
  18. +1 −1 ext/tk/README.ActiveTcl
  19. +7 −7 ext/tk/README.tcltklib
  20. +1 −1 ext/tk/lib/tk/image.rb
  21. +4 −4 ext/tk/lib/tkextlib/SUPPORT_STATUS
  22. +2 −2 ext/tk/lib/tkextlib/tile/style.rb
  23. +1 −1 ext/tk/sample/figmemo_sample.rb
  24. +1 −1 ext/tk/sample/msgs_tk/README
  25. +1 −1 ext/tk/sample/tkextlib/blt/readme.txt
  26. +2 −2 ext/tk/sample/tkextlib/bwidget/Orig_LICENSE.txt
  27. +3 −3 ext/tk/sample/tkextlib/iwidgets/catalog_demo/Orig_LICENSE.txt
  28. +2 −2 ext/tk/sample/tkextlib/tcllib/Orig_LICENSE.txt
  29. +1 −1 ext/tk/sample/tkextlib/tkimg/demo.rb
  30. +1 −1 ext/tk/sample/tkextlib/tkimg/readme.txt
  31. +2 −2 ext/tk/sample/tkextlib/tktable/Orig_LICENSE.txt
  32. +1 −1 ext/tk/sample/tkextlib/treectrl/readme.txt
  33. +2 −2 ext/tk/sample/tkextlib/vu/Orig_LICENSE.txt
  34. +2 −2 file.c
  35. +1 −1 include/ruby/ruby.h
  36. +1 −1 io.c
  37. +1 −1 lib/base64.rb
  38. +1 −1 lib/net/ftp.rb
  39. +1 −1 lib/optparse.rb
  40. +5 −5 lib/prettyprint.rb
  41. +4 −4 lib/racc/parser.rb
  42. +1 −1 lib/rake/name_space.rb
  43. +1 −1 lib/rdoc/rd/block_parser.rb
  44. +1 −1 lib/rdoc/rd/inline_parser.rb
  45. +1 −1 lib/rubygems.rb
  46. +1 −1 lib/rubygems/commands/list_command.rb
  47. +1 −1 lib/shell.rb
  48. +1 −1 lib/sync.rb
  49. +1 −1 lib/tmpdir.rb
  50. +1 −1 missing/crypt.c
  51. +1 −1 missing/file.h
  52. +2 −2 missing/flock.c
  53. +1 −1 nacl/README.nacl
  54. +2 −2 process.c
  55. +1 −1 range.c
  56. +1 −1 ruby.c
  57. +1 −1 string.c
  58. +7 −7 thread.c
  59. +3 −3 time.c
  60. +1 −1 vm.c
  61. +1 −1 win32/file.c
  62. +6 −6 win32/win32.c
View
@@ -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
View
@@ -193,7 +193,7 @@ INT2NUM()は整数がFIXNUMの範囲に収まらない場合,Bignumに変換
Rubyが用意している関数を用いてください.
ここではもっとも使われるであろう文字列と配列の生成/操作を行
-い関数をあげます(全部ではないです).
+う関数をあげます(全部ではないです).
=== 文字列に対する関数
View
@@ -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)
View
@@ -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;
View
@@ -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>
View
@@ -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>
View
10 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
@@ -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 @@ VpSqrt(Real *y, Real *x)
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 */
@@ -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)
View
@@ -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));
View
@@ -1,7 +1,7 @@
/*
* ext/dl/dl.c
*
- * doumentation:
+ * documentation:
* - Vincent Batts (vbatts@hashbangbash.com)
*
*/
View
@@ -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
View
@@ -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'
View
@@ -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;
View
@@ -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.
Oops, something went wrong.

0 comments on commit edb98f8

Please sign in to comment.