Fix format strings

This commit is contained in:
Sam Harwell 2013-02-23 23:15:47 -06:00
parent 55331e4a0f
commit baa2a95ad1
3 changed files with 3 additions and 3 deletions

View File

@ -975,7 +975,7 @@ nextState_break: ;
default:
{
string message = string.Format("The specified state type %d is not valid.", type);
string message = string.Format("The specified state type {0} is not valid.", type);
throw new ArgumentException(message);
}
}

View File

@ -155,7 +155,7 @@ namespace Antlr4.Runtime.Dfa
}
else
{
throw new NotSupportedException(string.Format("EdgeMap of type %s is supported yet."
throw new NotSupportedException(string.Format("EdgeMap of type {0} is supported yet."
, m.GetType().FullName));
}
}

View File

@ -104,7 +104,7 @@ namespace Antlr4.Runtime
{
return message;
}
return string.Format("failed predicate: {%s}?", predicate);
return string.Format("failed predicate: {{{0}}}?", predicate);
}
}
}