From c98bbade7c64fdb9c64618649b6e81aa0415d038 Mon Sep 17 00:00:00 2001 From: scarf Date: Thu, 8 Sep 2022 13:10:35 +0900 Subject: [PATCH] [docs] Fix typo (#2386) --- docs/src/docs/hooks/use-list-state.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/docs/hooks/use-list-state.mdx b/docs/src/docs/hooks/use-list-state.mdx index cca9f5933cf..b823cc6b2c5 100644 --- a/docs/src/docs/hooks/use-list-state.mdx +++ b/docs/src/docs/hooks/use-list-state.mdx @@ -64,9 +64,9 @@ const setItem = () => handlers.setItem(0, { a: 8 }); const setItemProp = () => handlers.setItemProp(1, 'a', 'new-prop'); // values -> [{ a: 8 }, { a: 'new-prop' }] -// remove objects that have a = 'new-prop' +// filter objects that have a = 'new-prop' const filter = () => handlers.filter((item) => item.a === 'new-prop'); -// values -> [{ a: 8 }] +// values -> [{ a: 'new-prop' }] ``` ## API