Skip to content

Commit 795bd50

Browse files
committed
Constant example added to example program
1 parent b3987d0 commit 795bd50

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)