Fix code example doc for Random.alphanumeric

This commit is contained in:
Petrik 2023-08-29 12:37:46 +02:00 committed by Nobuyoshi Nakada
parent 247fa3ca76
commit cfae3ed422
Notes: git 2023-08-29 10:48:48 +00:00

View File

@ -241,7 +241,7 @@ module Random::Formatter
# prng = Random.new # prng = Random.new
# prng.alphanumeric(10) #=> "i6K93NdqiH" # prng.alphanumeric(10) #=> "i6K93NdqiH"
# #
# Random.alphanumeric(4, chars: [*"0".."9"])' #=> "2952" # Random.alphanumeric(4, chars: [*"0".."9"]) #=> "2952"
# # or # # or
# prng = Random.new # prng = Random.new
# prng.alphanumeric(10, chars: [*"!".."/"]) #=> ",.,++%/''." # prng.alphanumeric(10, chars: [*"!".."/"]) #=> ",.,++%/''."