small code tweak in format

This commit is contained in:
Maxime Coste 2015-03-31 13:55:57 +01:00
parent e875828aa9
commit 4c49583fed

View File

@ -229,7 +229,7 @@ String format(StringView fmt, ArrayView<const StringView> params)
if (opening == end)
break;
if (opening != it && res.back() == '\\')
if (opening != it && *(opening-1) == '\\')
{
res.back() = '{';
it = opening + 1;