[go: up one dir, main page]

Skip to content

Commit

Permalink
docs: Fix link to return on produce doc page (immerjs#927)
Browse files Browse the repository at this point in the history
The current format was linking to https://immerjs.github.io/immer/produce/return , which does not exist
  • Loading branch information
pzich authored Apr 23, 2022
1 parent b2db62b commit 0a47a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/produce.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Inside the recipe, all standard JavaScript APIs can be used on the `draft` objec

Any of those mutations don't have to happen at the root, but it is allowed to modify anything anywhere deep inside the draft: `draft.todos[0].tags["urgent"].author.age = 56`

Note that the recipe function itself normally doesn't return anything. However, it is possible to return in case you want to replace the `draft` object in its entirety with another object, for more details see [returning new data](return).
Note that the recipe function itself normally doesn't return anything. However, it is possible to return in case you want to replace the `draft` object in its entirety with another object, for more details see [returning new data](./return.mdx).

## Example

Expand Down

0 comments on commit 0a47a40

Please sign in to comment.