summaryrefslogtreecommitdiff
path: root/letter_compress.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-09-29 15:40:43 -0700
committerScott Gasch <[email protected]>2021-09-29 15:40:43 -0700
commit791755ededfc0de84a81b4c7313830efbd27bf8c (patch)
tree379c7393218f46c941d88e1b628b8068d59dbff3 /letter_compress.py
parentb2eed6fefcfa14b03916c145ad3c0435b25374d0 (diff)
Stuff.
Diffstat (limited to 'letter_compress.py')
-rw-r--r--letter_compress.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/letter_compress.py b/letter_compress.py
index d5a4d60..9a6f32d 100644
--- a/letter_compress.py
+++ b/letter_compress.py
@@ -70,12 +70,12 @@ def decompress(kompressed: bytes) -> str:
# complete the partial 4th byte. In the 4th byte, however, one
# bit is information and seven are padding.
#
- # It's likely that this APIs client code will treat a zero byte as
- # a termination character and not regard it as part of the
- # message. This is a bug in the client code.
+ # It's likely that this API's client code may treat a zero byte as
+ # a termination character and not regard it as a legitimate part
+ # of the message. This is a bug in that client code, to be clear.
#
# However, it's a bug we can work around:
-
+ #
# Here, I'm appending an extra 0x00 byte to the compressed message
# passed in. If the client code dropped the last 0x00 byte (and,
# with it, some of the legitimate message bits) by treating it as