From fb320822fc554c4f4b0023b0bed4390d1001bf5f Mon Sep 17 00:00:00 2001 From: beinhaerter <34543625+beinhaerter@users.noreply.github.com> Date: Mon, 1 Jul 2019 21:16:38 +0200 Subject: [PATCH] typo in C.181: 'it' -> 'is' (#1462) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2f7e7f4..098abfd 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8473,7 +8473,7 @@ So far, so good, but we can easily misuse the `union`: cout << v.x << '\n'; // BAD, undefined behavior: v holds a double, but we read it as an int Note that the type error happened without any explicit cast. -When we tested that program the last value printed was `1683627180` which it the integer value for the bit pattern for `987.654`. +When we tested that program the last value printed was `1683627180` which is the integer value for the bit pattern for `987.654`. What we have here is an "invisible" type error that happens to give a result that could easily look innocent. And, talking about "invisible", this code produced no output: