Skip to content

Commit f408a00

Browse files
authored
Fix bool types (#437)
* Update ToolsUtility.cs * Update ToolsUtility.cs
1 parent c03dc6c commit f408a00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utility/ToolsUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal static ReadOnlySpan<byte> ClrToJsonTypeUtf8(Type clrType) =>
4242
Type t when t == typeof(long) => "number"u8,
4343
Type t when t == typeof(float) => "number"u8,
4444
Type t when t == typeof(string) => "string"u8,
45-
Type t when t == typeof(bool) => "bool"u8,
45+
Type t when t == typeof(bool) => "boolean"u8,
4646
_ => throw new NotImplementedException()
4747
};
4848

@@ -240,4 +240,4 @@ private static bool IsGenericTask(Type type, out Type taskResultType)
240240
taskResultType = null;
241241
return false;
242242
}
243-
}
243+
}

0 commit comments

Comments
 (0)