From e2491f6907bf9049a7445eea128d67af10ef0372 Mon Sep 17 00:00:00 2001 From: Niklas Johansson Date: Fri, 14 Feb 2025 08:41:11 +0100 Subject: [PATCH] fix: Remove unnecessary swear word While reading the physical book I came across an unnecessary swear word. Personally, I am not against swear words but this one felt unnecessary and makes the book feel less professional. I updated both the string and base64 encoding. Thank you for writing this book. I assign the copyright of this contribution to Pedro Duarte Faria. --- Chapters/01-base64.qmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Chapters/01-base64.qmd b/Chapters/01-base64.qmd index fabfc797..962f63bb 100644 --- a/Chapters/01-base64.qmd +++ b/Chapters/01-base64.qmd @@ -834,8 +834,8 @@ var fba = std.heap.FixedBufferAllocator.init( ); const allocator = fba.allocator(); -const text = "Testing some more shit"; -const etext = "VGVzdGluZyBzb21lIG1vcmUgc2hpdA=="; +const text = "Testing some more stuff"; +const etext = "VGVzdGluZyBzb21lIG1vcmUgc3R1ZmY="; const base64 = Base64.init(); const encoded_text = try base64.encode( allocator, text @@ -852,8 +852,8 @@ try stdout.print( ``` ``` -Encoded text: VGVzdGluZyBzb21lIG1vcmUgc2hpdA== -Decoded text: Testing some more shit +Encoded text: VGVzdGluZyBzb21lIG1vcmUgc3R1ZmY= +Decoded text: Testing some more stuff ``` You can also see the full source code at once, by visiting the official repository of this book[^repo].