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

ruby-changes:70848

From: Nobuyoshi <ko1@a...>
Date: Thu, 13 Jan 2022 11:37:25 +0900 (JST)
Subject: [ruby-changes:70848] 5a75151a01 (master): [DOC] Mark up the code for Kernel#rand as the same as Random#rand

https://git.ruby-lang.org/ruby.git/commit/?id=5a75151a01

From 5a75151a0166ded78fc87ef5891a6877ba0950db Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 13 Jan 2022 11:34:02 +0900
Subject: [DOC] Mark up the code for Kernel#rand as the same as Random#rand

---
 random.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/random.c b/random.c
index dc7e4771cdc..30329ed45c7 100644
--- a/random.c
+++ b/random.c
@@ -1622,7 +1622,7 @@ rand_mt_equal(VALUE self, VALUE other) https://github.com/ruby/ruby/blob/trunk/random.c#L1622
  *   rand(100)   #=> 12
  *
  * When +max+ is a Range, +rand+ returns a random number where
- * range.member?(number) == true.
+ * <code>range.member?(number) == true</code>.
  *
  * Negative or floating point values for +max+ are allowed, but may give
  * surprising results.
-- 
cgit v1.2.1


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

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