more formatting tweaks

Peter Harpending 2025-03-23 14:25:04 -07:00
parent 4b2b519ead
commit 739e86d04a

@ -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