Actions
Bug #3574
closedMissing documentation for sprintf named argument support
Description
=begin
I noticed that sprintf supports named argument since 1.9.1.
But I cannot find any documentation about sprintf named argument support.
In my test, named argument works like this:
sprintf("%s %d %{first} %{second}",{:first=>'hello',:second=>8}) #=> "hello 8 hello 8"
Thanks.
=end
Updated by naruse (Yui NARUSE) about 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r28702.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Actions
Like0
Like0