summaryrefslogtreecommitdiff
path: root/lib/random
diff options
context:
space:
mode:
authorDavid Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>2025-09-07 17:41:59 +0200
committerGitHub <noreply@github.com>2025-09-08 00:41:59 +0900
commit1e7ee6a4ba3ee626d9fb99be4a35365bce74b0f9 (patch)
treef74692a5971f36230e65112a18deaa60d835dd3e /lib/random
parent6cd98c24fe9aeea3829ac3d554a277f053cec0be (diff)
[DOC] Improve format specification docsHEADmaster
One example to describe how `*` works actually prints a warning: ``` $ ruby -we "sprintf('%d', 20, 14)" => -e:1: warning: too many arguments for format string ``` I think it's better to not use examples that print warnings, so I propose to merge `*` docs with "width" specifier docs, and only include the "correct" example. After I believe `*` is not an actual flag, but a special value that the width specifier can take. Mention `*` special value in initial summary as well.
Diffstat (limited to 'lib/random')
0 files changed, 0 insertions, 0 deletions