| Age | Commit message (Collapse) | Author |
|
Re-organize page docs
|
|
|
|
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.
|
|
Also [Bug #18973].
|
|
So that the first headings would be the top-most headings.
|
|
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
|
|
* Update doc/format_specifications.rdoc
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
|
|
* Repair internal links
* Minor changes to format spec
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
This new document would eventually replace the format spec discussion at Kernel#sprintf.
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|