Skip to content

Commit

Permalink
Small docu bug
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-blaeser committed Dec 18, 2024
1 parent 481b8e2 commit 49fabb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/md/canister-maintenance/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Adding a new record field to the type of existing stable variable is not support

### Solution

To resolve this issue, an [explicit](#explicit-migration) is needed:
To resolve this issue, an [explicit migration](#explicit-migration) is needed:

1. You must keep the old variable `map` with the same structural type. However, you are allowed to change type alias name (`Card` to `OldCard`).
2. You can introduce a new variable `newMap` and copy the old state to the new one, initializing the new field as needed.
Expand Down

0 comments on commit 49fabb2

Please sign in to comment.