[前][次][番号順一覧][スレッド一覧]

ruby-changes:56984

From: Aaron <ko1@a...>
Date: Tue, 13 Aug 2019 01:22:01 +0900 (JST)
Subject: [ruby-changes:56984] Aaron Patterson: 957bdfbab8 (master): Update docs to use more natural English

https://git.ruby-lang.org/ruby.git/commit/?id=957bdfbab8

From 957bdfbab8e8095bab82fa2e32571196e1777e10 Mon Sep 17 00:00:00 2001
From: Aaron Patterson <tenderlove@r...>
Date: Mon, 12 Aug 2019 12:21:37 -0400
Subject: Update docs to use more natural English

Just a few updates to make the English sound a bit more natural

diff --git a/string.c b/string.c
index 77d6757..ed23462 100644
--- a/string.c
+++ b/string.c
@@ -5137,9 +5137,9 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L5137
  *  <code>\d</code>, where <i>d</i> is a group number, or
  *  <code>\k<n></code>, where <i>n</i> is a group name.
  *  Similarly, <code>\&</code>, <code>\'</code>, <code>\`</code>, and
- *  <code>\+</code> are corresponded to special variables, <code>$&</code>,
+ *  <code>\+</code> correspond to special variables, <code>$&</code>,
  *  <code>$'</code>, <code>$`</code>, and <code>$+</code>, respectively.
- *  (See rdoc-ref:regexp.rdoc in detail.)
+ *  (See rdoc-ref:regexp.rdoc for details.)
  *  <code>\0</code> is the same as <code>\&</code>.
  *  <code>\\\\</code> is interpreted as an escape, i.e., a single backslash.
  *  Note that, within +replacement+ the special match variables, such as
@@ -5151,7 +5151,7 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L5151
  *  In the block form, the current match string is passed in as a parameter,
  *  and variables such as <code>$1</code>, <code>$2</code>, <code>$`</code>,
  *  <code>$&</code>, and <code>$'</code> will be set appropriately.
- *  (See rdoc-ref:regexp.rdoc in detail.)
+ *  (See rdoc-ref:regexp.rdoc for details.)
  *  The value returned by the block will be substituted for the match on each
  *  call.
  *
@@ -5166,8 +5166,8 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L5166
  *      #=> "Is /bin/bash your preferred shell?"
  *
  *  Note that a string literal consumes backslashes.
- *  (See rdoc-ref:syntax/literals.rdoc for the detail of string literals.)
- *  So, back-references are typically preceded by an additional backslash.
+ *  (See rdoc-ref:syntax/literals.rdoc for details about string literals.)
+ *  Back-references are typically preceded by an additional backslash.
  *  For example, if you want to write a back-reference <code>\&</code> in
  *  +replacement+ with a double-quoted string literal, you need to write:
  *  <code>"..\\\\&.."</code>.
@@ -5357,9 +5357,9 @@ rb_str_gsub_bang(int argc, VALUE *argv, VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L5357
  *  <code>\d</code>, where <i>d</i> is a group number, or
  *  <code>\k<n></code>, where <i>n</i> is a group name.
  *  Similarly, <code>\&</code>, <code>\'</code>, <code>\`</code>, and
- *  <code>\+</code> are corresponded to special variables, <code>$&</code>,
+ *  <code>\+</code> correspond to special variables, <code>$&</code>,
  *  <code>$'</code>, <code>$`</code>, and <code>$+</code>, respectively.
- *  (See rdoc-ref:regexp.rdoc in detail.)
+ *  (See rdoc-ref:regexp.rdoc for details.)
  *  <code>\0</code> is the same as <code>\&</code>.
  *  <code>\\\\</code> is interpreted as an escape, i.e., a single backslash.
  *  Note that, within +replacement+ the special match variables, such as
@@ -5371,7 +5371,7 @@ rb_str_gsub_bang(int argc, VALUE *argv, VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L5371
  *  In the block form, the current match string is passed in as a parameter,
  *  and variables such as <code>$1</code>, <code>$2</code>, <code>$`</code>,
  *  <code>$&</code>, and <code>$'</code> will be set appropriately.
- *  (See rdoc-ref:regexp.rdoc in detail.)
+ *  (See rdoc-ref:regexp.rdoc for details.)
  *  The value returned by the block will be substituted for the match on each
  *  call.
  *
@@ -5388,8 +5388,8 @@ rb_str_gsub_bang(int argc, VALUE *argv, VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L5388
  *     'hello'.gsub(/[eo]/, 'e' => 3, 'o' => '*')    #=> "h3ll*"
  *
  *  Note that a string literal consumes backslashes.
- *  (See rdoc-ref:syntax/literals.rdoc for the detail of string literals.)
- *  So, back-references are typically preceded by an additional backslash.
+ *  (See rdoc-ref:syntax/literals.rdoc for details on string literals.)
+ *  Back-references are typically preceded by an additional backslash.
  *  For example, if you want to write a back-reference <code>\&</code> in
  *  +replacement+ with a double-quoted string literal, you need to write:
  *  <code>"..\\\\&.."</code>.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]