diff --git a/docs/guides/updating-state.md b/docs/guides/updating-state.md index 08c8a5c50..a036dae89 100644 --- a/docs/guides/updating-state.md +++ b/docs/guides/updating-state.md @@ -131,7 +131,7 @@ You can also use [Ramda](https://ramdajs.com/): ```ts ramdaInc: () => - set(R.over(R.lensPath(["deep", "nested", "obj", "count"]), (c) => c + 1)), + set(R.modifyPath(["deep", "nested", "obj", "count"], (c) => c + 1)), ``` Both ramda and optics-ts also work with types.