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

ruby-changes:71717

From: Peter <ko1@a...>
Date: Wed, 13 Apr 2022 23:43:59 +0900 (JST)
Subject: [ruby-changes:71717] 54b53e2c8f (master): [ci skip] Fix docs

https://git.ruby-lang.org/ruby.git/commit/?id=54b53e2c8f

From 54b53e2c8fc06e708232e399e3970fd0ecc5c4a5 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Wed, 13 Apr 2022 10:42:46 -0400
Subject: [ci skip] Fix docs

---
 io.c      |  2 +-
 process.c |  2 +-
 struct.c  | 12 ++++++------
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/io.c b/io.c
index 32704d9d17..3fe1f6eb16 100644
--- a/io.c
+++ b/io.c
@@ -7524,7 +7524,7 @@ static VALUE popen_finish(VALUE port, VALUE klass); https://github.com/ruby/ruby/blob/trunk/io.c#L7524
  *
  *  - <tt>cmd[0][0]</tt> (the first string in the nested array) is the name of a program that is run.
  *  - <tt>cmd[0][1]</tt> (the second string in the nested array) is set as the program's <tt>argv[0]</tt>.
- *  - <tt>cmd[1..-1] (the strings in the outer array) are the program's arguments.
+ *  - <tt>cmd[1..-1]</tt> (the strings in the outer array) are the program's arguments.
  *
  *  Example (sets <tt>$0</tt> to 'foo'):
  *
diff --git a/process.c b/process.c
index b0991755cb..6de5833c4b 100644
--- a/process.c
+++ b/process.c
@@ -3165,7 +3165,7 @@ NORETURN(static VALUE f_exec(int c, const VALUE *a, VALUE _)); https://github.com/ruby/ruby/blob/trunk/process.c#L3165
  *  [<code>exec(cmdname, arg1, ...)</code>]
  *	command name and one or more arguments (no shell)
  *  [<code>exec([cmdname, argv0], arg1, ...)</code>]
- *	command name, argv[0] and zero or more arguments (no shell)
+ *	command name, +argv[0]+ and zero or more arguments (no shell)
  *
  *  In the first form, the string is taken as a command line that is subject to
  *  shell expansion before being executed.
diff --git a/struct.c b/struct.c
index 6d9a929321..44ca389f04 100644
--- a/struct.c
+++ b/struct.c
@@ -1433,12 +1433,12 @@ recursive_eql(VALUE s, VALUE s2, int recur) https://github.com/ruby/ruby/blob/trunk/struct.c#L1433
  *  - <tt>other.class == self.class</tt>.
  *  - For each member name +name+, <tt>other.name.eql?(self.name)</tt>.
  *
- *    Customer = Struct.new(:name, :address, :zip)
- *    joe    = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
- *    joe_jr = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
- *    joe_jr.eql?(joe) # => true
- *    joe_jr[:name] = 'Joe Smith, Jr.'
- *    joe_jr.eql?(joe) # => false
+ *     Customer = Struct.new(:name, :address, :zip)
+ *     joe    = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
+ *     joe_jr = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
+ *     joe_jr.eql?(joe) # => true
+ *     joe_jr[:name] = 'Joe Smith, Jr.'
+ *     joe_jr.eql?(joe) # => false
  *
  *  Related: Object#==.
  */
-- 
cgit v1.2.1


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

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