зеркало из https://github.com/github/ruby.git
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
136643a876
Коммит
5c5b64c60b
8
random.c
8
random.c
|
@ -1084,7 +1084,7 @@ random_ulong_limited_big(VALUE obj, rb_random_t *rnd, VALUE vmax)
|
||||||
static VALUE genrand_bytes(rb_random_t *rnd, long n);
|
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.
|
* Returns a random binary string containing +size+ bytes.
|
||||||
*
|
*
|
||||||
|
@ -1135,10 +1135,10 @@ rb_random_bytes(VALUE obj, long n)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 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
|
* Returns a random binary string.
|
||||||
* the result string.
|
* The argument +size+ specifies the length of the returned string.
|
||||||
*/
|
*/
|
||||||
static VALUE
|
static VALUE
|
||||||
random_s_bytes(VALUE obj, VALUE len)
|
random_s_bytes(VALUE obj, VALUE len)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче