diff --git a/lib/random/formatter.rb b/lib/random/formatter.rb index 18e6717b6c..45b53a7b6e 100644 --- a/lib/random/formatter.rb +++ b/lib/random/formatter.rb @@ -241,7 +241,7 @@ module Random::Formatter # prng = Random.new # prng.alphanumeric(10) #=> "i6K93NdqiH" # - # Random.alphanumeric(4, chars: [*"0".."9"])' #=> "2952" + # Random.alphanumeric(4, chars: [*"0".."9"]) #=> "2952" # # or # prng = Random.new # prng.alphanumeric(10, chars: [*"!".."/"]) #=> ",.,++%/''."