From f8d10194079cf01e23f05f094b925c58a0c190c3 Mon Sep 17 00:00:00 2001 From: ValerieLemieux Date: Tue, 1 Feb 2022 15:09:57 -0500 Subject: [PATCH] Fix expected value in README.rST phrase example --- README.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.rst b/README.rst index 507bb01..88b993e 100644 --- a/README.rst +++ b/README.rst @@ -15,16 +15,16 @@ If you have an iterable of symbols, the ``collections.Counter`` is a handy way t :: >>> huffman.codebook(collections.Counter('man the stand banana man').items()) - {' ': '111', - 'a': '10', - 'b': '0100', - 'd': '0110', - 'e': '11010', - 'h': '0101', - 'm': '1100', - 'n': '00', - 's': '11011', - 't': '0111'} + {' ': '111', + 'a': '10', + 'b': '0101', + 'd': '0110', + 'e': '11000', + 'h': '0100', + 'm': '0111', + 'n': '00', + 's': '11001', + 't': '1101'} .. _Huffman codes: https://en.wikipedia.org/wiki/Huffman_coding