Skip to content

Commit

Permalink
Fix code example doc for Random.alphanumeric
Browse files Browse the repository at this point in the history
  • Loading branch information
p8 authored and hsbt committed Sep 4, 2023
1 parent b2e9309 commit 683b5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/random/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def uuid
# 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: [*"!".."/"]) #=> ",.,++%/''."
Expand Down

0 comments on commit 683b5ab

Please sign in to comment.