From 87d7d09b03d80b97ebaf6cb56ee7a69ccc3255c5 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 7 Mar 2024 21:43:37 +1100 Subject: [PATCH] docs: fix typo releated to tree() docs --- keys.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keys.ts b/keys.ts index 3d369d4..761e27b 100644 --- a/keys.ts +++ b/keys.ts @@ -75,13 +75,13 @@ * ["a", "d", "f"] * ``` * - * And you would get the following results when using `unique()`: + * And you would get the following results when using `tree()`: * * ```ts * import { unique } from "jsr:@kitsonk/kv-toolbox/keys"; * * const kv = await Deno.openKv(); - * console.log(await unique(kv, ["a"])); + * console.log(await tree(kv, ["a"])); * // { * // prefix: ["a"], * // children: [ @@ -430,13 +430,13 @@ export interface KeyTree { * ["a", "d", "f"] * ``` * - * And you would get the following results when using `unique()`: + * And you would get the following results when using `tree()`: * * ```ts * import { unique } from "jsr:@kitsonk/kv-toolbox/keys"; * * const kv = await Deno.openKv(); - * console.log(await unique(kv, ["a"])); + * console.log(await tree(kv, ["a"])); * // { * // prefix: ["a"], * // children: [