Skip to content

Commit d6c165c

Browse files
authored
Update README.md
1 parent ca9580a commit d6c165c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ You can use this as simple as using the TireMap.
2828

2929
- Second, you need to declare a Bucket
3030

31-
**upgrade** :This means that you can upgrade your canister without discarding files stored in the stablememory. Meanwhile available stablememory will become **aval_stablememory = 8G - heap memory **
31+
**upgrade** :This means that you can upgrade your canister without discarding files stored in the stablememory. Meanwhile available stablememory will become **aval_stablememory** = **8G - heap memory**
3232

3333
```motoko
3434
let bucket = Bucket.Bucket(true); // true : upgradable, false : unupgradable
3535
```
3636

37-
You have a few more things to do below:
37+
You have a few more things to do below:
3838

3939
1. you should use a stable entries to store your key-value pairs during upgrade
4040

@@ -54,12 +54,12 @@ You can use this as simple as using the TireMap.
5454
bucket_entries := [];
5555
};
5656
```
57+
58+
**unupgradable** : This means that if you upgrade your canister, you will discard files stored in the stablememory
59+
```motoko
60+
let bucket = Bucket.Bucket(false); // true : upgradable, false : unupgradabl
61+
```
5762

58-
**unupgradable** : This means that if you upgrade your canister, you will discard files stored in the stablememory
59-
60-
```motoko
61-
let bucket = Bucket.Bucket(false); // true : upgradable, false : unupgradabl
62-
```
6363

6464
- Third,configure the **dfx.json**
6565

@@ -176,4 +176,4 @@ YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT USE OF THIS SOFTWARE IS AT YOUR SOLE RI
176176

177177
<span id="hh"></span>
178178

179-
We'd like to collaborate with the community to provide better data storage standard implementation for the developers on the IC, if you have some ideas you'd like to discuss, submit an issue, if you want to improve the code or you made a different implementation, make a pull request!
179+
We'd like to collaborate with the community to provide better data storage standard implementation for the developers on the IC, if you have some ideas you'd like to discuss, submit an issue, if you want to improve the code or you made a different implementation, make a pull request!

0 commit comments

Comments
 (0)