summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPetrik <petrik@deheus.net>2023-08-29 12:37:46 +0200
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-29 19:48:28 +0900
commitcfae3ed42224b3e59cd6a02bf25a1d820e3b2b36 (patch)
tree4bac150336917c044df456a74fe8966786d03179 /lib
parent247fa3ca7666a5873a575ccfdb78c87753c2ad80 (diff)
Fix code example doc for Random.alphanumeric
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8317
Diffstat (limited to 'lib')
-rw-r--r--lib/random/formatter.rb2
1 files changed, 1 insertions, 1 deletions
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: [*"!".."/"]) #=> ",.,++%/''."