Browse Source

Fix JsonTokenizer exception message

Jon Skeet 7 years ago
parent
commit
74f64b667c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      csharp/src/Google.Protobuf/JsonTokenizer.cs

+ 1 - 1
csharp/src/Google.Protobuf/JsonTokenizer.cs

@@ -245,7 +245,7 @@ namespace Google.Protobuf
                             state = State.ObjectAfterColon;
                             state = State.ObjectAfterColon;
                             break;
                             break;
                         case ',':
                         case ',':
-                            ValidateState(State.ObjectAfterProperty | State.ArrayAfterValue, "Invalid state to read a colon: ");
+                            ValidateState(State.ObjectAfterProperty | State.ArrayAfterValue, "Invalid state to read a comma: ");
                             state = state == State.ObjectAfterProperty ? State.ObjectAfterComma : State.ArrayAfterComma;
                             state = state == State.ObjectAfterProperty ? State.ObjectAfterComma : State.ArrayAfterComma;
                             break;
                             break;
                         case '"':
                         case '"':