summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2021-12-03 07:12:28 -0600
committerGitHub <noreply@github.com>2021-12-03 07:12:28 -0600
commit28fb6d6b9e06a632f96244a635a045622a6be276 (patch)
tree1c96616dc764d2b67c83fe9443b7f5ae1f8c9ea8 /hash.c
parent324d57df0b28982590609d7ae080f82074a82a5c (diff)
Adding links to literals and Kernel (#5192)
* Adding links to literals and Kernel
Notes
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/hash.c b/hash.c
index aee671da34..270ddfb522 100644
--- a/hash.c
+++ b/hash.c
@@ -6598,13 +6598,13 @@ env_dup(VALUE obj)
*
* === Creating a \Hash
*
- * Here are three ways to create a \Hash:
+ * You can create a \Hash object explicitly with:
*
- * - \Method <tt>Hash.new</tt>
- * - \Method <tt>Hash[]</tt>
- * - Literal form: <tt>{}</tt>.
+ * - A {hash literal}[doc/syntax/literals_rdoc.html#label-Hash+Literals].
*
- * ---
+ * You can convert certain objects to Hashes with:
+ *
+ * - \Method {Hash}[Kernel.html#method-i-Hash].
*
* You can create a \Hash by calling method Hash.new.
*
@@ -6614,8 +6614,6 @@ env_dup(VALUE obj)
* h # => {}
* h.class # => Hash
*
- * ---
- *
* You can create a \Hash by calling method Hash.[].
*
* Create an empty Hash:
@@ -6628,8 +6626,6 @@ env_dup(VALUE obj)
* h = Hash[foo: 0, bar: 1, baz: 2]
* h # => {:foo=>0, :bar=>1, :baz=>2}
*
- * ---
- *
* You can create a \Hash by using its literal form (curly braces).
*
* Create an empty \Hash: