From a1f33044d7c3e83553fb773e177dd35f06b69e8c Mon Sep 17 00:00:00 2001 From: Piotr Beling Date: Thu, 14 Mar 2024 09:00:00 +0100 Subject: [PATCH] doc. --- minimum_redundancy/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minimum_redundancy/README.md b/minimum_redundancy/README.md index 86c5453..86bad81 100644 --- a/minimum_redundancy/README.md +++ b/minimum_redundancy/README.md @@ -41,6 +41,6 @@ assert_eq!(decoder_for_b.consume(0), DecodingResult::Value(&'b')); let mut decoder_for_c = huffman.decoder(); assert_eq!(decoder_for_c.consume(0), DecodingResult::Incomplete); assert_eq!(decoder_for_c.consume(1), DecodingResult::Value(&'c')); -assert_eq!(huffman.total_fragments_count(), 5); -assert_eq!(huffman.values.as_ref(), ['a', 'b', 'c']); +assert_eq!(huffman.total_fragments_count(), 5); // 1+2+2 +assert_eq!(huffman.values.as_ref(), ['a', 'b', 'c']); // sorted by frequencies ``` \ No newline at end of file