From 739e86d04aa4c8f58b2e027c6c1acba8e72e0d9b Mon Sep 17 00:00:00 2001 From: Peter Harpending Date: Sun, 23 Mar 2025 14:25:04 -0700 Subject: [PATCH] more formatting tweaks --- BaseN.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BaseN.md b/BaseN.md index a5ba320..8669105 100644 --- a/BaseN.md +++ b/BaseN.md @@ -114,7 +114,7 @@ char2int($/) -> 63. The only stupid cases arise when the number of bytes in the binary data is not a multiple of 3. In this case there are two padding rules: -``` {.Erlang language="Erlang"} +```erlang % general case: at least 3 bytes (24 bits = 6+6+6+6) remaining % % 12345678 abcdefgh 12345678 ... @@ -160,7 +160,7 @@ By the way, that's the *entire* encode procedure right there. The decode procedure is similarly simple but slightly trickier: -``` {.Erlang language="Erlang"} +```erlang dec(Base64_String) -> dec(Base64_String, <<>>). @@ -221,7 +221,6 @@ dec([W, X, Y, Z | Rest], Acc) -> This is marginally trickier because 1. it needs an accumulator - 2. the order of the cases matters