Skip to content

Commit

Permalink
Fix small docu bug (#4828)
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-blaeser authored Dec 18, 2024
1 parent 606e9e4 commit 9ae06e3
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 9ae06e3

Please sign in to comment.