Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nventuro committed Nov 25, 2024
1 parent 178789e commit f3f79dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ A `SharedImmutable`'s storage **must** only be set once via `initialize`. Attemp

Returns the stored immutable value. This function is available in public, private and unconstrained contexts.

#include_code read_shared_immutable_private /noir-projects/noir-contracts/contracts/token_contract/src/main.nr rust
#include_code read_shared_immutable_public /noir-projects/noir-contracts/contracts/token_contract/src/main.nr rust

#include_code read_shared_immutable_private /noir-projects/noir-contracts/contracts/token_contract/src/main.nr rust
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ contract Token {
storage.symbol.read()
}

// docs:start:read_shared_immutable_private
// docs:start:read_shared_immutable_public
#[public]
#[view]
fn public_get_decimals() -> pub u8 {
storage.decimals.read()
}
// docs:end:read_shared_immutable_private
// docs:end:read_shared_immutable_public

// docs:start:read_shared_immutable_private
#[private]
Expand Down

0 comments on commit f3f79dd

Please sign in to comment.