From ad7d42cb8ea982ff7e99911f851d43122fde0f6a Mon Sep 17 00:00:00 2001 From: Andrea Manzini Date: Thu, 26 Oct 2023 11:53:06 +0200 Subject: [PATCH] Fix documentation of `Hash#put_if_absent` (#13898) --- src/hash.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash.cr b/src/hash.cr index 05ea0ca3b1de..156f2d7d6313 100644 --- a/src/hash.cr +++ b/src/hash.cr @@ -1075,7 +1075,7 @@ class Hash(K, V) # Otherwise *value* is returned. # # ``` - # h = {} of Int32 => Array(String) + # h = {} of Int32 => String # h.put_if_absent(1, "one") # => "one" # h.put_if_absent(1, "uno") # => "one" # h.put_if_absent(2, "two") # => "two"