From 49fabb21796a3c50972d3adc1017b57fccc21226 Mon Sep 17 00:00:00 2001 From: luc-blaeser Date: Wed, 18 Dec 2024 13:28:31 +0100 Subject: [PATCH] Small docu bug --- doc/md/canister-maintenance/compatibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/md/canister-maintenance/compatibility.md b/doc/md/canister-maintenance/compatibility.md index 9592856ad83..06c9a65e320 100644 --- a/doc/md/canister-maintenance/compatibility.md +++ b/doc/md/canister-maintenance/compatibility.md @@ -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.