Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private static int FromString(ReadOnlySpan<byte> s)
{
if (s.Length == 0)
{
throw new JsonException("null cannot be assigned to long");
throw new JsonException("null cannot be assigned to int");
}

if (s.SequenceEqual("0x0"u8))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static ulong FromString(ReadOnlySpan<byte> s)
{
if (s.Length == 0)
{
throw new JsonException("null cannot be assigned to long");
throw new JsonException("null cannot be assigned to ulong");
}

if (s.SequenceEqual("0x0"u8))
Expand Down