Skip to content

Commit 097cd4b

Browse files
authored
Merge pull request #427 from quyenducngo/patch-8
Update program copy
2 parents 590dcb2 + 542c72c commit 097cd4b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

documentation/concepts/01_programs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Programs
44
sidebar_label: Programs
55
---
66

7-
A **program** is a fundamental data structure for representing application logic and application state.
7+
A **program** is a fundamental artifact for representing application logic and application state.
88

99
Aleo introduces a new programming language called **Aleo instructions** that enables developers to write
1010
private web applications. Aleo instructions is a statically-typed programming language for
@@ -44,10 +44,10 @@ function transfer:
4444
// Input the token amount.
4545
input r2 as u64.private;
4646

47-
// Checks the given token record has sufficient balance.
48-
// This `sub` operation is safe, and the proof will fail
49-
// if an underflow occurs. The output register `r3` holds
50-
// the change amount to be returned to the sender.
47+
// The `sub` operation is safe: it checks for underflows and
48+
// halts if an underflow occurs. When an instruction like this
49+
// halts, no zero-knowledge proof is generated. The output
50+
// register `r3` holds the change amount to be returned to the sender.
5151
sub r0.amount r2 into r3;
5252

5353
// Produces a token record for the specified receiver.

0 commit comments

Comments
 (0)