Skip to content

Commit 0a56633

Browse files
authoredFeb 18, 2021
Fixes #2372 - variable typos (#2465)
1 parent 5a35c77 commit 0a56633

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎Src/Newtonsoft.Json.Tests/JsonTextWriterTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ public void BuildStateArray()
12171217
{
12181218
JsonWriter.State[][] stateArray = JsonWriter.BuildStateArray();
12191219

1220-
var valueStates = JsonWriter.StateArrayTempate[7];
1220+
var valueStates = JsonWriter.StateArrayTemplate[7];
12211221

12221222
foreach (JsonToken valueToken in GetValues(typeof(JsonToken)))
12231223
{

‎Src/Newtonsoft.Json/JsonWriter.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal enum State
6262
// array that gives a new state based on the current state an the token being written
6363
private static readonly State[][] StateArray;
6464

65-
internal static readonly State[][] StateArrayTempate = new[]
65+
internal static readonly State[][] StateArrayTemplate = new[]
6666
{
6767
// Start PropertyName ObjectStart Object ArrayStart Array ConstructorStart Constructor Closed Error
6868
//
@@ -78,9 +78,9 @@ internal enum State
7878

7979
internal static State[][] BuildStateArray()
8080
{
81-
List<State[]> allStates = StateArrayTempate.ToList();
82-
State[] errorStates = StateArrayTempate[0];
83-
State[] valueStates = StateArrayTempate[7];
81+
List<State[]> allStates = StateArrayTemplate.ToList();
82+
State[] errorStates = StateArrayTemplate[0];
83+
State[] valueStates = StateArrayTemplate[7];
8484

8585
EnumInfo enumValuesAndNames = EnumUtils.GetEnumValuesAndNames(typeof(JsonToken));
8686

0 commit comments

Comments
 (0)
Please sign in to comment.