summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-02-25 09:05:33 -0600
committerPeter Zhu <peter@peterzhu.ca>2025-02-26 09:27:55 -0500
commita870419f3a1f9a12d7458d4a7427d0766ea86911 (patch)
treee0f3351b181a467eb96bdd665c8be0253db7a316
parent237ab21f25b0a062ce6a272e0586d00778a6f20b (diff)
[DOC] Tweaks for Hash#inspect
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12807
-rw-r--r--hash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index ecd1d8a568..3eb2e3eadc 100644
--- a/hash.c
+++ b/hash.c
@@ -3505,11 +3505,12 @@ inspect_hash(VALUE hash, VALUE dummy, int recur)
* call-seq:
* inspect -> new_string
*
- * Returns a new String containing the hash entries:
-
+ * Returns a new string containing the hash entries:
+ *
* h = {foo: 0, bar: 1, baz: 2}
* h.inspect # => "{foo: 0, bar: 1, baz: 2}"
*
+ * Related: see {Methods for Converting}[rdoc-ref:Hash@Methods+for+Converting].
*/
static VALUE