From 40fe2742395c620853839f12ff644d9a2f749c57 Mon Sep 17 00:00:00 2001 From: Collin Chin <16715212+collinc97@users.noreply.github.com> Date: Tue, 19 Sep 2023 09:18:59 -0700 Subject: [PATCH] Correct note on aleo instructions closures Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com> --- arc-0003/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arc-0003/README.md b/arc-0003/README.md index d037383..4d783ff 100644 --- a/arc-0003/README.md +++ b/arc-0003/README.md @@ -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