Actions
Bug #13761
closedincomplete format specifier
Description
is it a bug?
'%0.0f%' % 45
expected
ruby 2.4.1 => '45%'
actual
ruby trunk => ArgumentError: incomplete format specifier
workaround
'%0.0f%s' % [45, '%']
=> '45%'
ruby -v
ruby 2.5.0dev (2017-07-21 trunk 59380) [x86_64-linux]
Actions
Like0
Like0Like0