From 6bbeb4eab4279987a2380dff4ae3c1eca0e0f9a1 Mon Sep 17 00:00:00 2001 From: "Daniel J. Dufour" Date: Sat, 25 Sep 2021 10:35:33 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c3e316d..6c0c33f 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,10 @@ const decoded = decode(encoded); ``` ## encoding ```javascript -import encode from 'fast-rle/decode'; +import encode from 'fast-rle/encode'; const numbers = [3, 3, 3, 3, 3, 8, 0, 0]; -const encoded = decode(numbers); +const encoded = encode(numbers); // [5, 3, 1, 8, 2, 0] ```