]> code.bitgloo.com Git - clyne/consteval-huffman.git/commitdiff
Update README.md
authorclyne <clyne@bitgloo.com>
Wed, 30 Dec 2020 13:09:56 +0000 (08:09 -0500)
committerGitHub <noreply@github.com>
Wed, 30 Dec 2020 13:09:56 +0000 (08:09 -0500)
README.md

index 08464a5fad4fe7f85edaf625f5068c39e75b7717..f1b5fe26e23ad805e87c341f72d1a3aaf7408b55 100644 (file)
--- a/README.md
+++ b/README.md
@@ -25,13 +25,13 @@ A string of numbers 1 to 100 separated with spaces can be compressed to 64% of i
 ## How to Use
 
 ```cpp
-// 1.
+// 1. Include
 #include "consteval_huffman.hpp"
 
-// 2.
+// 2. Use _huffman suffix (data now stores compressed string)
 auto data = "This is my string of data"_huffman; // "\0\x1 Non-text data works too!"
 
-// 3.
+// 3. Use iterator to decompress at run-time
 for (char c : data)
     std::cout << c;
 ```