diff --git a/docs/1.5-Built-in-functions.md b/docs/1.5-Built-in-functions.md index a1c4f0f..6bfef3f 100644 --- a/docs/1.5-Built-in-functions.md +++ b/docs/1.5-Built-in-functions.md @@ -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.
diff --git a/docs/3-Learning-with-examples.md b/docs/3-Learning-with-examples.md index 2648b5d..fd74a97 100644 --- a/docs/3-Learning-with-examples.md +++ b/docs/3-Learning-with-examples.md @@ -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(); } @@ -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