From b0db48a1b61c642e20cc1637b597fd4cb3a5a9cd Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Tue, 14 Nov 2023 18:21:24 +1300 Subject: [PATCH] template doesn't like capital C# --- _posts/2023/2023-11-09-decimals-are-weird.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2023/2023-11-09-decimals-are-weird.md b/_posts/2023/2023-11-09-decimals-are-weird.md index 1c516ce..235c701 100644 --- a/_posts/2023/2023-11-09-decimals-are-weird.md +++ b/_posts/2023/2023-11-09-decimals-are-weird.md @@ -10,7 +10,7 @@ I've discovered another odd consequence of what is probably fully intentional co Okay, that's not strictly true, but it does seem so if you're comparing the values in JSON. -```C# +```c# var a = 4m; var b = 4.0m; @@ -59,7 +59,7 @@ When I built the extension method, I already had one for `JsonElement`. (It han This has an interesting nuance to the problem in that if the `JsonNode`s are parsed: -```C# +```c# var jsonA = JsonNode.Parse("4"); var jsonB = JsonNode.Parse("4.0");