Skip to content

Commit

Permalink
rename size() to length()
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Feb 10, 2020
1 parent 3c53c62 commit 6f7c4a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/ackermann.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ nCrypt has devised a way to calculate the value of the Ackermann function using
// run this function off chain to get the loop count and set it here
// e.g., (2, 1) requires 14 loops, (3, 5) 42438
loop (14) {
if (size(stk) > 0) {
if (length(stk) > 0) {
bytes top = stk[0:1];
m = bin2num(top);
// pop
stk = stk[1:size(stk)];
stk = stk[1:length(stk)];
if (m == 0) {
n = n + m + 1;
Expand Down
2 changes: 1 addition & 1 deletion docs/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bytes Operations

Converts a bytes array ``b`` to an integer, including minimal encoding in signed magnitude format.

* ``int size(bytes b)``
* ``int length(bytes b)``

Returns the length of ``b``.

0 comments on commit 6f7c4a6

Please sign in to comment.