Skip to content

Commit

Permalink
chore: fix docs (#4923)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari committed Mar 4, 2024
1 parent f07beee commit edfba29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/developers/contracts/references/storage/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ We will see examples of map constructors for public and private variables in lat

#### As private storage

When declaring a mapping in private storage, we have to specify which type of Note to use. In the example below, we are specifying that we want to use the `Singleton` note type.
When declaring a mapping in private storage, we have to specify which type of Note to use. In the example below, we are specifying that we want to use the `PrivateMutable` note type.

In the Storage struct:

#include_code storage-map-singleton-declaration /noir-projects/noir-contracts/contracts/docs_example_contract/src/main.nr rust
#include_code storage-private-mutable-declaration /noir-projects/noir-contracts/contracts/docs_example_contract/src/main.nr rust

#### Public Example

Expand Down

0 comments on commit edfba29

Please sign in to comment.