From 4bf80810a51a75bc191cabcc2f585228d7f57096 Mon Sep 17 00:00:00 2001 From: Aman Karmani Date: Fri, 18 Oct 2024 21:26:51 -0700 Subject: [PATCH] fix typo in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fbba469..b090397 100644 --- a/README.md +++ b/README.md @@ -60,10 +60,10 @@ const list = new Uint8ArrayList() list.append(Uint8Array.from([0, 1, 2])) list.append(Uint8Array.from([3, 4, 5])) -list.slice(0, 1) +list.subarray(0, 1) // -> Uint8Array([0]) - no-copy -list.slice(2, 5) +list.subarray(2, 5) // -> Uint8Array([2, 3, 4]) - copy ```