Symbol chars used instead of single length strings

This commit is contained in:
Bruce Bowyer-Smyth
2014-07-28 16:30:10 +10:00
parent 490895716c
commit 432d262dcd
6 changed files with 27 additions and 16 deletions
+3 -3
View File
@@ -206,7 +206,7 @@ namespace Newtonsoft.Json.Linq
JProperty property = (JProperty)current;
if (sb.Length > 0)
sb.Append(".");
sb.Append('.');
sb.Append(property.Name);
break;
@@ -214,9 +214,9 @@ namespace Newtonsoft.Json.Linq
case JTokenType.Constructor:
int index = ((IList<JToken>)current).IndexOf(next);
sb.Append("[");
sb.Append('[');
sb.Append(index);
sb.Append("]");
sb.Append(']');
break;
}
}