Skip to content

Commit

Permalink
Fix wrong documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
deleterium committed Feb 20, 2024
1 parent d30d25c commit ed63596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/1.5-Built-in-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ If less than 4 assets are found, the firsts values will have the assetId and the
* Description:
Returns the quantity (QNT) of 'assetId' transfered in 'transaction'.
If transaction is invalid, -1 is returned.
If transaction valid and there is asset transfers that match 'assetId', zero is returned.
If transaction valid and there is no asset transfers that match 'assetId', zero is returned.
</details>
<details>
<summary>
Expand Down
4 changes: 2 additions & 2 deletions docs/3-Learning-with-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ long counter;
void main(void) {
long txid;
while ((txid = getNextTx() != 0) {
while ((txid = getNextTx()) != 0) {
// Process transaction in a specific function
processTX();
}
Expand Down Expand Up @@ -94,7 +94,7 @@ void processTX(void){

while (true) {
long txid;
while ((txid = getNextTx() != 0) {
while ((txid = getNextTx()) != 0) {
sendAmount(getAmount(txid), getSender(txid))
}
// After all transactions processed
Expand Down

0 comments on commit ed63596

Please sign in to comment.