Skip to content

Commit 581923b

Browse files
authored
Merge pull request #424 from oguzutku1745/update-example-program
Constant example added to example program
2 parents 5ae1b3a + 795bd50 commit 581923b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

documentation/leo/03_language.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ The body of the program is delimited by curly braces `{}`.
156156
import foo.aleo;
157157
158158
program hello.aleo {
159+
const FOO: u64 = 1u64;
159160
mapping balances: address => u64;
160161
161162
record token {
@@ -187,7 +188,7 @@ program hello.aleo {
187188
}
188189
189190
function compute(a: u64, b: u64) -> u64 {
190-
return a + b;
191+
return a + b + FOO;
191192
}
192193
}
193194
```

0 commit comments

Comments
 (0)