Skip to content

Commit bdc6407

Browse files
fix: #[ink::contract_ref] example (#502)
1 parent 2e5bc93 commit bdc6407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/macros-attributes/contract_ref.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ inferred from the root contract.
3131
```rust
3232
#[ink::contract_ref(abi = "sol")]
3333
pub trait Erc20 {
34-
Returns the total supply of the ERC-20 smart contract.
34+
/// Returns the total supply of the ERC-20 smart contract.
3535
#[ink(message)]
3636
fn total_supply(&self) -> ink::U256;
3737

38-
Transfers balance from the caller to the given address.
38+
/// Transfers balance from the caller to the given address.
3939
#[ink(message)]
4040
fn transfer(&mut self, amount: ink::U256, to: ink::Address) -> bool;
4141

0 commit comments

Comments
 (0)