aboutsummaryrefslogtreecommitdiffstats
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-01-13 11:34:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-01-13 11:34:09 +0900
commit5a75151a0166ded78fc87ef5891a6877ba0950db (patch)
tree87d9015f623c4827cae446e97992cb5107872449 /random.c
parentd1a55851e8b5d90c028466865eee4a99b48cec85 (diff)
downloadruby-5a75151a0166ded78fc87ef5891a6877ba0950db.tar.gz
[DOC] Mark up the code for Kernel#rand as the same as Random#rand
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index dc7e4771cd..30329ed45c 100644
--- a/random.c
+++ b/random.c
@@ -1622,7 +1622,7 @@ rand_mt_equal(VALUE self, VALUE other)
* 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.