From 175f7566866b06ccdceb434e422bb4512173a29a Mon Sep 17 00:00:00 2001
From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com>
Date: Wed, 17 Jan 2024 05:59:06 -0800
Subject: [PATCH 1/2] Remove \ from $ in code blocks in 2020/carlini
I believe it was a mistake to add the \ before the $ as it was in a code
block. In one case a pair of '`'s was missing and those were added there
so that both are now code blocks. If it is not an error to have the '\'
before the '$' then the code block added should still be there but I
believe it was a mistake anyway.
---
2020/carlini/README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/2020/carlini/README.md b/2020/carlini/README.md
index fdbe701e8..4e20219c0 100644
--- a/2020/carlini/README.md
+++ b/2020/carlini/README.md
@@ -242,9 +242,9 @@ the following expression
where argument 1 is a pointer to a temporary variable followed by a NUL byte.
This works because if the current count is 0 mod 256, then `"%1$hhn"` will write
-zero to argument 1 and then "%1\$s" will never emit any text. If, on the other
+zero to argument 1 and then `"%1$s"` will never emit any text. If, on the other
hand, the count is not 0 mod 256, a length-1 string will be written to argument
-1, and then `"%1\$s"` will increment the count by one. By repeating this 256
+1, and then `"%1$s"` will increment the count by one. By repeating this 256
times we're eventually going to reach 0 mod 256.
Checking if there has been an invalid move is achieved similarly.
From 1aab58977ee7f3c75b0a8e11fe627f07fd2c6f82 Mon Sep 17 00:00:00 2001
From: Landon Curt Noll
where argument 1 is a pointer to a temporary variable followed by a NUL byte.
This works because if the current count is 0 mod 256, then
-"%1$hhn" will write zero to argument 1 and then “%1$s” will
-never emit any text. If, on the other hand, the count is not 0 mod 256,
-a length-1 string will be written to argument 1, and then
-"%1\$s" will increment the count by one. By repeating this
-256 times we’re eventually going to reach 0 mod 256.
"%1$hhn" will write zero to argument 1 and then
+"%1$s" will never emit any text. If, on the other hand, the
+count is not 0 mod 256, a length-1 string will be written to argument 1,
+and then "%1$s" will increment the count by one. By
+repeating this 256 times we’re eventually going to reach 0 mod 256.
Checking if there has been an invalid move is achieved similarly.
In order to decide what to print out, we have to cast the “in-memory” array of bits to Xs and Os to print out. This is actually rather