Use %s to avoid embedding Strings which may contain '%' characters.

This commit is contained in:
Postmodern 2013-01-20 22:30:49 -08:00
parent b1374d7ec4
commit bbda303a83

View file

@ -270,7 +270,7 @@ module Mutant
# @api private
#
def print_killer(color, word, killer)
puts(colorize(color, "#{word}: #{killer.identification} (%02.2fs)" % killer.runtime))
puts(colorize(color, "%s: %s (%02.2fs)" % [word, killer.identification, killer.runtime]))
end
# Test for output to tty