Project

General

Profile

Actions

Bug #13761

closed

incomplete format specifier

Added by ahorek (Pavel Rosický) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:82118]

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

Also available in: Atom PDF

Like0
Like0Like0