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

ruby-changes:50947

From: stomar <ko1@a...>
Date: Sun, 15 Apr 2018 01:45:50 +0900 (JST)
Subject: [ruby-changes:50947] stomar:r63154 (trunk): random.c: improve docs for Random.bytes

stomar	2018-04-15 01:45:46 +0900 (Sun, 15 Apr 2018)

  New Revision: 63154

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63154

  Log:
    random.c: improve docs for Random.bytes
    
    * random.c: [DOC] improve language and RDoc markup in Random.bytes docs;
      also adjust call-seq style of Random.bytes and Random#bytes.

  Modified files:
    trunk/random.c
Index: random.c
===================================================================
--- random.c	(revision 63153)
+++ random.c	(revision 63154)
@@ -1084,7 +1084,7 @@ random_ulong_limited_big(VALUE obj, rb_r https://github.com/ruby/ruby/blob/trunk/random.c#L1084
 static VALUE genrand_bytes(rb_random_t *rnd, long n);
 
 /*
- * call-seq: prng.bytes(size) -> a_string
+ * call-seq: prng.bytes(size) -> string
  *
  * Returns a random binary string containing +size+ bytes.
  *
@@ -1135,10 +1135,10 @@ rb_random_bytes(VALUE obj, long n) https://github.com/ruby/ruby/blob/trunk/random.c#L1135
 }
 
 /*
- * call-seq: Random.bytes(size) -> a_string
+ * call-seq: Random.bytes(size) -> string
  *
- * Returns a random binary string.  The argument size specified the length of
- * the result string.
+ * Returns a random binary string.
+ * The argument +size+ specifies the length of the returned string.
  */
 static VALUE
 random_s_bytes(VALUE obj, VALUE len)

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

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