diff --git a/exercises/02.latest-ref/01.problem.ref/index.tsx b/exercises/02.latest-ref/01.problem.ref/index.tsx index 9efb8112..804b3084 100644 --- a/exercises/02.latest-ref/01.problem.ref/index.tsx +++ b/exercises/02.latest-ref/01.problem.ref/index.tsx @@ -21,7 +21,7 @@ function useDebounce) => unknown>( // 🐨 create a latest ref (via useRef and useEffect) here // use the latest version of the callback here: - // 💰 you'll need to pass an annonymous function to debounce. Do *not* + // 💰 you'll need to pass an anonymous function to debounce. Do *not* // simply change this to `debounce(latestCallbackRef.current, delay)` // as that won't work. Can you think of why? return useMemo(() => debounce(callback, delay), [callback, delay])