Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #2372 - variable typos #2465

Merged
merged 1 commit into from Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Src/Newtonsoft.Json.Tests/JsonTextWriterTest.cs
Expand Up @@ -1217,7 +1217,7 @@ public void BuildStateArray()
{
JsonWriter.State[][] stateArray = JsonWriter.BuildStateArray();

var valueStates = JsonWriter.StateArrayTempate[7];
var valueStates = JsonWriter.StateArrayTemplate[7];

foreach (JsonToken valueToken in GetValues(typeof(JsonToken)))
{
Expand Down
8 changes: 4 additions & 4 deletions Src/Newtonsoft.Json/JsonWriter.cs
Expand Up @@ -62,7 +62,7 @@ internal enum State
// array that gives a new state based on the current state an the token being written
private static readonly State[][] StateArray;

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

internal static State[][] BuildStateArray()
{
List<State[]> allStates = StateArrayTempate.ToList();
State[] errorStates = StateArrayTempate[0];
State[] valueStates = StateArrayTempate[7];
List<State[]> allStates = StateArrayTemplate.ToList();
State[] errorStates = StateArrayTemplate[0];
State[] valueStates = StateArrayTemplate[7];

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

Expand Down