From e86c9c29e01404eb4e22d09f370a87f2b6a9fef6 Mon Sep 17 00:00:00 2001 From: Apoorv Lathey Date: Wed, 27 Sep 2023 10:43:50 +0530 Subject: [PATCH] Fix incorrect bytes length --- src/tutorial/hello-world/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tutorial/hello-world/README.md b/src/tutorial/hello-world/README.md index 1601602..fad6804 100644 --- a/src/tutorial/hello-world/README.md +++ b/src/tutorial/hello-world/README.md @@ -62,7 +62,7 @@ Notice in the previous example that 3 adjacent words (32 bytes each) are being s If we take the length (`0x0d`) and the bytes (`0x48656c6c6f2c20776f726c6421`), and concatenate them, we would get: `0x0d48656c6c6f2c20776f726c6421` which becomes left padded value of: ``` -0x000000000000000000000000000000000000000d48656c6c6f2c20776f726c6421 +0x0000000000000000000000000000000000000d48656c6c6f2c20776f726c6421 ``` Now, instead of starting the second word at `0x20`, if we offset that by 13 bytes (starting at `0x2d` instead of `0x20`) then it lines up so that the `0d` falls in the right most (lowest) bits of the second word (location 0x3F) and the remaining bytes start immediately in the first leftmost (highest) byte of the third word (location 0x40).