Fix typo (error messages)

This commit is contained in:
Isamu Mogi
2019-06-05 19:44:27 +09:00
parent 0936fefac2
commit c21988d195
5 changed files with 8 additions and 8 deletions

View File

@@ -106,7 +106,7 @@ namespace UniJSON
{
if (top.Count % 2 == 0)
{
if (!isKey) throw new FormatterException("key exptected");
if (!isKey) throw new FormatterException("key expected");
if (top.Count != 0)
{
m_w.Write(',');
@@ -114,7 +114,7 @@ namespace UniJSON
}
else
{
if (isKey) throw new FormatterException("key not exptected");
if (isKey) throw new FormatterException("key not expected");
}
}
break;

View File

@@ -156,7 +156,7 @@ namespace UniJSON
if (MaxItems.HasValue && count > MaxItems.Value)
{
return new JsonSchemaValidationException(context, "maxOtems");
return new JsonSchemaValidationException(context, "maxItems");
}
if (MinItems.HasValue && count < MinItems.Value)