diff options
| author | Petrik <petrik@deheus.net> | 2023-08-29 12:37:46 +0200 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-29 19:48:28 +0900 |
| commit | cfae3ed42224b3e59cd6a02bf25a1d820e3b2b36 (patch) | |
| tree | 4bac150336917c044df456a74fe8966786d03179 /lib/random/formatter.rb | |
| parent | 247fa3ca7666a5873a575ccfdb78c87753c2ad80 (diff) | |
Fix code example doc for Random.alphanumeric
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8317
Diffstat (limited to 'lib/random/formatter.rb')
| -rw-r--r-- | lib/random/formatter.rb | 2 |
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: [*"!".."/"]) #=> ",.,++%/''." |
