Fix format strings
This commit is contained in:
parent
55331e4a0f
commit
baa2a95ad1
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ namespace Antlr4.Runtime
|
|||
{
|
||||
return message;
|
||||
}
|
||||
return string.Format("failed predicate: {%s}?", predicate);
|
||||
return string.Format("failed predicate: {{{0}}}?", predicate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue