From cfae3ed42224b3e59cd6a02bf25a1d820e3b2b36 Mon Sep 17 00:00:00 2001 From: Petrik Date: Tue, 29 Aug 2023 12:37:46 +0200 Subject: [PATCH] Fix code example doc for Random.alphanumeric --- lib/random/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: [*"!".."/"]) #=> ",.,++%/''."