From a90bcc0cd4fb186beb0ef166ce7de87f526dad6a Mon Sep 17 00:00:00 2001 From: Justin Date: Sun, 14 Apr 2019 00:00:46 +1000 Subject: [PATCH] Update simple-serialize.md --- specs/simple-serialize.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/simple-serialize.md b/specs/simple-serialize.md index f57945749..a7d80e264 100644 --- a/specs/simple-serialize.md +++ b/specs/simple-serialize.md @@ -87,7 +87,7 @@ assert sum(fixed_lengths + variable_lengths) < 2**(BYTES_PER_LENGTH_OFFSET * BIT offsets = [sum(fixed_lengths + variable_lengths[:i]) for i in range(len(value))] fixed_parts = [part if part != None else offsets[i] for i, part in enumerate(fixed_parts)] -# Return the fixed parts (with offsets interleaved) followed by variable parts +# Return the fixed parts (with offsets interleaved) followed by the variable parts return "".join(fixed_parts + variable_parts) ```