Skip to content

Commit 9bdddc1

Browse files
zachfedorwillemneal
authored andcommitted
Update docs/tutorial/01-getting-started.md
Co-authored-by: Willem Wyndham <willem@ahalabs.dev>
1 parent 9d58623 commit 9bdddc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/01-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ The `#[...]` syntax in Rust is called an [attribute](https://doc.rust-lang.org/r
181181

182182
In this case `#[contract]` is an [attribute macro](https://doc.rust-lang.org/reference/procedural-macros.html#attribute-macros), which is a special function called by the compiler that generates code at compile time.
183183

184-
Here we're defining a [struct](https://doc.rust-lang.org/book/ch05-01-defining-structs.html) (a "structure" to hold values) and applying attributes of a Stellar smart contract.
184+
Here we're defining a [struct](https://doc.rust-lang.org/book/ch05-01-defining-structs.html) (a "structure" to hold values) and applying attributes of a Stellar smart contract. A `struct` also allows defining methods. In this case the structs holds no values but we will still define methods on it.
185185

186186
```rust
187187
const THE_NUMBER: Symbol = symbol_short!("n");

0 commit comments

Comments
 (0)