summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-14 02:52:14 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-14 02:52:14 +0000
commit52cd994814335d6cee5ee4fae2827edd5e0d73b9 (patch)
treebfdd943ca353ca3c29be13bc4641b6e94add469e
parent53e4e7fc3d5df29ca8287a3e39dc9dd865706ca0 (diff)
* 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
-rw-r--r--ChangeLog11
-rw-r--r--enum.c2
-rw-r--r--io.c4
-rw-r--r--iseq.c2
-rw-r--r--numeric.c2
-rw-r--r--process.c2
-rw-r--r--string.c2
-rw-r--r--vm_trace.c2
8 files changed, 19 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 424ebd8..d654377 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Mon Dec 14 11:46:52 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
+
+ * 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 <hsbt@ruby-lang.org>
* lib/cgi.rb: fix a typo in documentation.
diff --git a/enum.c b/enum.c
index 458a425..9ce5e60 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 <i>enum</i> for which
* not <code>Pattern === element</code>.
*
diff --git a/io.c b/io.c
index 4155796..faec319 100644
--- a/io.c
+++ b/io.c
@@ -3214,7 +3214,7 @@ rb_io_gets(VALUE io)
* If IO contains multibyte characters byte then <code>gets(1)</code>
* 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 f553720..3dfc390 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 830ffb9..5e70caf 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 08f624f..4826a2e 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 <code>Process::CLOCK_</code>
+ * It is specified as a constant which begins with <code>Process::CLOCK_</code>
* 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 319c516..1bd7582 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 <code>&$</code>, 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. <code>"\\'"</code>, then it
+ * is actually not a pattern capture group e.g. <code>"\\'"</code>, then it
* will have to be preceded by two backslashes like so <code>"\\\\'"</code>.
*
* 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 0515abf..b814a12 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);