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

ruby-changes:61441

From: S-H-GAMELINKS <ko1@a...>
Date: Mon, 1 Jun 2020 08:11:22 +0900 (JST)
Subject: [ruby-changes:61441] 6a0405def2 (master): fix typo in Hash#delete docs

https://git.ruby-lang.org/ruby.git/commit/?id=6a0405def2

From 6a0405def25cd658184b844acfd83d15ccdae171 Mon Sep 17 00:00:00 2001
From: S-H-GAMELINKS <gamelinks007@g...>
Date: Mon, 1 Jun 2020 01:49:15 +0900
Subject: fix typo in Hash#delete docs


diff --git a/hash.c b/hash.c
index 80651b0..87a30c4 100644
--- a/hash.c
+++ b/hash.c
@@ -2506,7 +2506,7 @@ rb_hash_delete(VALUE hash, VALUE key) https://github.com/ruby/ruby/blob/trunk/hash.c#L2506
 /*
  *  call-seq:
  *    hash.delete(key) -> value or nil
- *    hash.delete(key) { |key| ... } -<value
+ *    hash.delete(key) { |key| ... } -> value
  *
  *  Deletes the entry for the given +key+
  *  and returns its associated value.
-- 
cgit v0.10.2


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

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