Skip to content

Commit

Permalink
Correct note on aleo instructions closures
Browse files Browse the repository at this point in the history
Signed-off-by: Collin Chin <[email protected]>
  • Loading branch information
collinc97 authored Sep 19, 2023
1 parent 383b0b4 commit 40fe274
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arc-0003/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,18 @@ program foo.aleo {
```
Functions must be defined within a [program scope](#program-scope).

In Aleo instructions, helper functions are written as `closure`.

**Aleo instructions**
```rust=
program foo.aleo;
function compute:
closure compute:
input r0 as u64.private;
input r1 as u64.private;
add r0 r1 into r2;
output r2 as u64.private;
```
In Aleo instructions, functions were previously written as `closure` - this syntax is now deprecated.


### Test Cases
Expand Down

0 comments on commit 40fe274

Please sign in to comment.