Fixed Typo (#5477)

Change how many "=" sign to how many "=" signs
This commit is contained in:
Hithru De Alwis 2021-10-20 19:04:31 +05:30 committed by GitHub
parent 50485f7c8e
commit 672a0c8816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ def base64_encode(data: bytes) -> bytes:
The data is first transformed to binary and appended with binary digits so that its The data is first transformed to binary and appended with binary digits so that its
length becomes a multiple of 6, then each 6 binary digits will match a character in length becomes a multiple of 6, then each 6 binary digits will match a character in
the B64_CHARSET string. The number of appended binary digits would later determine the B64_CHARSET string. The number of appended binary digits would later determine
how many "=" sign should be added, the padding. how many "=" signs should be added, the padding.
For every 2 binary digits added, a "=" sign is added in the output. For every 2 binary digits added, a "=" sign is added in the output.
We can add any binary digits to make it a multiple of 6, for instance, consider the We can add any binary digits to make it a multiple of 6, for instance, consider the
following example: following example: