Skip to content

Commit 3fa5831

Browse files
maxtaran2010claude
andcommitted
Fix typos in test and docs
- test/test_unpack.py: rename `lenghts` -> `lengths` - docs/conf.py: fix `shat` -> `that` in comment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 659ee98 commit 3fa5831

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
# The format is a list of tuples containing the path and title.
270270
# epub_pre_files = []
271271

272-
# HTML files shat should be inserted after the pages created by sphinx.
272+
# HTML files that should be inserted after the pages created by sphinx.
273273
# The format is a list of tuples containing the path and title.
274274
# epub_post_files = []
275275

test/test_unpack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def test_unpacker_tell_read_bytes():
9090
objects = 1, "abc", "ghi"
9191
packed = b"\x01\x02\xa3abc\xa3def\xa3ghi"
9292
raw_data = b"\x02", b"\xa3def", b""
93-
lenghts = 1, 4, 999
93+
lengths = 1, 4, 999
9494
positions = 1, 6, 14
9595
unpacker = Unpacker(BytesIO(packed))
96-
for obj, unp, pos, n, raw in zip(objects, unpacker, positions, lenghts, raw_data):
96+
for obj, unp, pos, n, raw in zip(objects, unpacker, positions, lengths, raw_data):
9797
assert obj == unp
9898
assert pos == unpacker.tell()
9999
assert unpacker.read_bytes(n) == raw

0 commit comments

Comments
 (0)