From 52cd994814335d6cee5ee4fae2827edd5e0d73b9 Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 14 Dec 2015 02:52:14 +0000 Subject: [PATCH] * enum.c: fix a typo in documentation. [ci skip][fix GH-1140] Patch by @jutaz * io.c: ditto. * iseq.c: ditto. * numeric.c: ditto. * process.c: ditto. * string.c: ditto. * vm_trace.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 11 +++++++++++ enum.c | 2 +- io.c | 4 ++-- iseq.c | 2 +- numeric.c | 2 +- process.c | 2 +- string.c | 2 +- vm_trace.c | 2 +- 8 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 424ebd8a6d..d654377adc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +Mon Dec 14 11:46:52 2015 SHIBATA Hiroshi + + * enum.c: fix a typo in documentation. + [ci skip][fix GH-1140] Patch by @jutaz + * io.c: ditto. + * iseq.c: ditto. + * numeric.c: ditto. + * process.c: ditto. + * string.c: ditto. + * vm_trace.c: ditto. + Mon Dec 14 11:41:59 2015 SHIBATA Hiroshi * lib/cgi.rb: fix a typo in documentation. diff --git a/enum.c b/enum.c index 458a425002..9ce5e6084e 100644 --- a/enum.c +++ b/enum.c @@ -97,7 +97,7 @@ enum_grep(VALUE obj, VALUE pat) * enum.grep_v(pattern) -> array * enum.grep_v(pattern) { |obj| block } -> array * - * Inversed version of Enumerable#grep. + * Inverted version of Enumerable#grep. * Returns an array of every element in enum for which * not Pattern === element. * diff --git a/io.c b/io.c index 4155796641..faec319a92 100644 --- a/io.c +++ b/io.c @@ -3214,7 +3214,7 @@ rb_io_gets(VALUE io) * If IO contains multibyte characters byte then gets(1) * returns character entirely: * - * # russian characters take 2 bytes + * # Russian characters take 2 bytes * File.write("testfile", "\u{442 435 441 442}") * File.open("testfile") {|f|f.gets(1)} #=> "\u0442" * File.open("testfile") {|f|f.gets(2)} #=> "\u0442" @@ -11845,7 +11845,7 @@ opt_i_get(ID id, VALUE *var) * call-seq: * ARGF.inplace_mode = ext -> ARGF * - * Sets the filename extension for inplace editing mode to the given String. + * Sets the filename extension for in place editing mode to the given String. * Each file being edited has this value appended to its filename. The * modified file is saved under this new name. * diff --git a/iseq.c b/iseq.c index f553720980..3dfc390397 100644 --- a/iseq.c +++ b/iseq.c @@ -2336,7 +2336,7 @@ rb_iseqw_local_variables(VALUE iseqval) * iseq.to_binary(extra_data = nil) -> binary str * * Returns serialized iseq binary format data as a String object. - * A correspnding iseq object is created by + * A corresponding iseq object is created by * RubyVM::InstructionSequence.load_from_binary() method. * * String extra_data will be saved with binary data. diff --git a/numeric.c b/numeric.c index 830ffb95b4..5e70cafdc9 100644 --- a/numeric.c +++ b/numeric.c @@ -1619,7 +1619,7 @@ flo_next_float(VALUE vx) * call-seq: * float.prev_float -> float * - * Returns the previous representable floatint-point number. + * Returns the previous representable floating-point number. * * (-Float::MAX).prev_float and (-Float::INFINITY).prev_float is -Float::INFINITY. * diff --git a/process.c b/process.c index 08f624f96a..4826a2e02a 100644 --- a/process.c +++ b/process.c @@ -7111,7 +7111,7 @@ get_mach_timebase_info(void) * #=> 896053.968060096 * * +clock_id+ specifies a kind of clock. - * It is specifed as a constant which begins with Process::CLOCK_ + * It is specified as a constant which begins with Process::CLOCK_ * such as Process::CLOCK_REALTIME and Process::CLOCK_MONOTONIC. * * The supported constants depends on OS and version. diff --git a/string.c b/string.c index 319c51647e..1bd7582495 100644 --- a/string.c +++ b/string.c @@ -4527,7 +4527,7 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str) * additional backslash. However, within +replacement+ the special match * variables, such as &$, will not refer to the current match. * If +replacement+ is a String that looks like a pattern's capture group but - * is actaully not a pattern capture group e.g. "\\'", then it + * is actually not a pattern capture group e.g. "\\'", then it * will have to be preceded by two backslashes like so "\\\\'". * * If the second argument is a Hash, and the matched text is one of its keys, diff --git a/vm_trace.c b/vm_trace.c index 0515abf7ab..b814a1201d 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -1448,7 +1448,7 @@ Init_vm_trace(void) * +:b_return+:: event hook at block ending * +:thread_begin+:: event hook at thread beginning * +:thread_end+:: event hook at thread ending - * +:fiber_siwtch+:: event hook at fiber switch + * +:fiber_switch+:: event hook at fiber switch * */ rb_cTracePoint = rb_define_class("TracePoint", rb_cObject);