Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct note on aleo instructions closures #39

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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