Skip to content

fix: corrected a typo in stable-structures.mdx #5860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";

Stable structures are a set of scalable data structures designed storing data and allowing it to grow to gigabytes in size without the need for `pre_upgrade`/`post_upgrade` hooks. Using `pre_` and `post_upgrade` hooks is discouraged. It is error-prone and can render a canister unusable.

When a stable structure is initialized, memory is provided to the data structure. Each data structure manages is own memory and cannot share memories with other structures.
When a stable structure is initialized, memory is provided to the data structure. Each data structure manages its own memory and cannot share memories with other structures.

To use stable structures, the Rust [stable structure library](https://github.com/dfinity/stable-structures#readme) exists. It simplifies managing data structures directly in stable memory and provides example code templates. A brief example can be found below:

Expand Down
Loading