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

ruby-changes:71516

From: Burdette <ko1@a...>
Date: Sat, 26 Mar 2022 03:48:48 +0900 (JST)
Subject: [ruby-changes:71516] 1a002d9ade (master): Fix formatting errors in What's Here for Array, Hash, ENV (#5718)

https://git.ruby-lang.org/ruby.git/commit/?id=1a002d9ade

From 1a002d9ade6e2c78650bbf1894ad7c4138bc808d Mon Sep 17 00:00:00 2001
From: Burdette Lamar <BurdetteLamar@Y...>
Date: Fri, 25 Mar 2022 13:48:21 -0500
Subject: Fix formatting errors in What's Here for Array, Hash, ENV (#5718)

---
 array.c |   8 +--
 hash.c  | 226 ++++++++++++++++++++++++++++++++--------------------------------
 2 files changed, 117 insertions(+), 117 deletions(-)

diff --git a/array.c b/array.c
index ca8be28c61..672aff7be8 100644
--- a/array.c
+++ b/array.c
@@ -8194,7 +8194,7 @@ rb_ary_deconstruct(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L8194
  *
  *  === Methods for Comparing
 
- *  - {<=>}[Array.html#method-i-3C-3D-3E]: Returns -1, 0, or 1
+ *  - {<=>}[#method-i-3C-3D-3E]: Returns -1, 0, or 1
  *    as +self+ is less than, equal to, or greater than a given object.
  *  - #==: Returns whether each element in +self+ is <tt>==</tt> to the corresponding element
  *    in a given object.
@@ -8277,12 +8277,12 @@ rb_ary_deconstruct(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L8277
  *
  *  === Methods for Combining
  *
- *  - {&}[Array.html#method-i-26]: Returns an array containing elements found both in +self+ and a given array.
+ *  - {&}[#method-i-26]: Returns an array containing elements found both in +self+ and a given array.
  *  - #intersection: Returns an array containing elements found both in +self+
  *    and in each given array.
  *  - #+: Returns an array containing all elements of +self+ followed by all elements of a given array.
- *  - #-: Returns an array containiing all elements of +self+ that are not found in a given array.
- *  - {|}[Array.html#method-i-7C]: Returns an array containing all elements of +self+ and all elements of a given array,
+ *  - #-: Returns an array containing all elements of +self+ that are not found in a given array.
+ *  - {|}[#method-i-7C]: Returns an array containing all elements of +self+ and all elements of a given array,
  *    duplicates removed.
  *  - #union: Returns an array containing all elements of +self+ and all elements of given arrays,
  *    duplicates removed.
diff --git a/hash.c b/hash.c
index 630117ae8a..27b4390345 100644
--- a/hash.c
+++ b/hash.c
@@ -7036,107 +7036,107 @@ static const rb_data_type_t env_data_type = { https://github.com/ruby/ruby/blob/trunk/hash.c#L7036
  *
  *  ==== Methods for Creating a \Hash
  *
- *  ::[]:: Returns a new hash populated with given objects.
- *  ::new:: Returns a new empty hash.
- *  ::try_convert:: Returns a new hash created from a given object.
+ *  - ::[]: Returns a new hash populated with given objects.
+ *  - ::new: Returns a new empty hash.
+ *  - ::try_convert: Returns a new hash created from a given object.
  *
  *  ==== Methods for Setting \Hash State
  *
- *  #compare_by_identity:: Sets +self+ to consider only identity in comparing keys.
- *  #default=:: Sets the default to a given value.
- *  #default_proc=:: Sets the default proc to a given proc.
- *  #rehash:: Rebuilds the hash table by recomputing the hash index for each key.
+ *  - #compare_by_identity: Sets +self+ to consider only identity in comparing keys.
+ *  - #default=: Sets the default to a given value.
+ *  - #default_proc=: Sets the default proc to a given proc.
+ *  - #rehash: Rebuilds the hash table by recomputing the hash index for each key.
  *
  *  ==== Methods for Querying
  *
- *  #any?:: Returns whether any element satisfies a given criterion.
- *  #compare_by_identity?:: Returns whether the hash considers only identity when comparing keys.
- *  #default:: Returns the default value, or the default value for a given key.
- *  #default_proc:: Returns the default proc.
- *  #empty?:: Returns whether there are no entries.
- *  #eql?:: Returns whether a given object is equal to +self+.
- *  #hash:: Returns the integer hash code.
- *  #has_value?:: Returns whether a given object is a value in +self+.
- *  #include?, #has_key?, #member?, #key?:: Returns whether a given object is a key in +self+.
- *  #length, #size:: Returns the count of entries.
- *  #value?:: Returns whether a given object is a value in +self+.
+ *  - #any?: Returns whether any element satisfies a given criterion.
+ *  - #compare_by_identity?: Returns whether the hash considers only identity when comparing keys.
+ *  - #default: Returns the default value, or the default value for a given key.
+ *  - #default_proc: Returns the default proc.
+ *  - #empty?: Returns whether there are no entries.
+ *  - #eql?: Returns whether a given object is equal to +self+.
+ *  - #hash: Returns the integer hash code.
+ *  - #has_value?: Returns whether a given object is a value in +self+.
+ *  - #include?, #has_key?, #member?, #key?: Returns whether a given object is a key in +self+.
+ *  - #length, #size: Returns the count of entries.
+ *  - #value?: Returns whether a given object is a value in +self+.
  *
  *  ==== Methods for Comparing
  *
- *  #<:: Returns whether +self+ is a proper subset of a given object.
- *  #<=:: Returns whether +self+ is a subset of a given object.
- *  #==:: Returns whether a given object is equal to +self+.
- *  #>:: Returns whether +self+ is a proper superset of a given object
- *  #>=:: Returns whether +self+ is a proper superset of a given object.
+ *  - {<}[#method-i-3C]: Returns whether +self+ is a proper subset of a given object.
+ *  - {<=}[#method-i-3C-3D]: Returns whether +self+ is a subset of a given object.
+ *  - #==: Returns whether a given object is equal to +self+.
+ *  - {>}[#method-i-3E]: Returns whether +self+ is a proper superset of a given object
+ *  - {>=}[#method-i-3E-3D]: Returns whether +self+ is a proper superset of a given object.
  *
  *  ==== Methods for Fetching
  *
- *  #[]:: Returns the value associated with a given key.
- *  #assoc:: Returns a 2-element array containing a given key and its value.
- *  #dig:: Returns the object in nested objects that is specified
- *         by a given key and additional arguments.
- *  #fetch:: Returns the value for a given key.
- *  #fetch_values:: Returns array containing the values associated with given keys.
- *  #key:: Returns the key for the first-found entry with a given value.
- *  #keys:: Returns an array containing all keys in +self+.
- *  #rassoc:: Returns a 2-element array consisting of the key and value
-              of the first-found entry having a given value.
- *  #values:: Returns an array containing all values in +self+/
- *  #values_at:: Returns an array containing values for given keys.
+ *  - #[]: Returns the value associated with a given key.
+ *  - #assoc: Returns a 2-element array containing a given key and its value.
+ *  - #dig: Returns the object in nested objects that is specified
+ *    by a given key and additional arguments.
+ *  - #fetch: Returns the value for a given key.
+ *  - #fetch_values: Returns array containing the values associated with given keys.
+ *  - #key: Returns the key for the first-found entry with a given value.
+ *  - #keys: Returns an array containing all keys in +self+.
+ *  - #rassoc: Returns a 2-element array consisting of the key and value
+      of the first-found entry having a given value.
+ *  - #values: Returns an array containing all values in +self+/
+ *  - #values_at: Returns an array containing values for given keys.
  *
  *  ==== Methods for Assigning
  *
- *  #[]=, #store:: Associates a given key with a given value.
- *  #merge:: Returns the hash formed by merging each given hash into a copy of +self+.
- *  #merge!, #update:: Merges each given hash into +self+.
- *  #replace:: Replaces the entire contents of +self+ with the contents of a given hash.
+ *  - #[]=, #store: Associates a given key with a given value.
+ *  - #merge: Returns the hash formed by merging each given hash into a copy of +self+.
+ *  - #merge!, #update: Merges each given hash into +self+.
+ *  - #replace: Replaces the entire contents of +self+ with the contents of a given hash.
  *
  *  ==== Methods for Deleting
  *
  *  These methods remove entries from +self+:
  *
- *  #clear:: Removes all entries from +self+.
- *  #compact!:: Removes all +nil+-valued entries from +self+.
- *  #delete:: Removes the entry for a given key.
- *  #delete_if:: Removes entries selected by a given block.
- *  #filter!, #select!:: Keep only those entries selected by a given block.
- *  #keep_if:: Keep only those entries selected by a given block.
- *  #reject!:: Removes entries selected by a given block.
- *  #shift:: Removes and returns the first entry.
+ *  - #clear: Removes all entries from +self+.
+ *  - #compact!: Removes all +nil+-valued entries from +self+.
+ *  - #delete: Removes the entry for a given key.
+ *  - #delete_if: Removes entries selected by a given block.
+ *  - #filter!, #select!: Keep only those entries selected by a given block.
+ *  - #keep_if: Keep only those entries selected by a given block.
+ *  - #reject!: Removes entries selected by a given block.
+ *  - #shift: Removes and returns the first entry.
  *
  *  These methods return a copy of +self+ with some entries removed:
  *
- *  #compact:: Returns a copy of +self+ with all +nil+-valued entries removed.
- *  #except:: Returns a copy of +self+ with entries removed for specified keys.
- *  #filter, #select:: Returns a copy of +self+ with only those entries selected by a given block.
- *  #reject:: Returns a copy of +self+ with entries removed as specified by a given block.
- *  #slice:: Returns a hash containing the entries for given keys.
+ *  - #compact: Returns a copy of +self+ with all +nil+-valued entries removed.
+ *  - #except: Returns a copy of +self+ with entries removed for specified keys.
+ *  - #filter, #select: Returns a copy of +self+ with only those entries selected by a given block.
+ *  - #reject: Returns a copy of +self+ with entries removed as specified by a given block.
+ *  - #slice: Returns a hash containing the entries for given keys.
  *
  *  ==== Methods for Iterating
- *  #each, #each_pair:: Calls a given block with eac (... truncated)

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

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