Skip to content

Commit 936b383

Browse files
author
ugexe (Nick Logan)
committed
documents nqp::push return value not defined
In the quest for documenting the return value for moarvm nqp::push some discrepancies are discovered: TimToady> I guess moar is just returning the 2 > which is kinda not what I'd expect > I don't see anywhere in nqp where the value is used, actually > er, in nom/src I should say > might be best to say the return value is currently undefined Also: $typos--
1 parent 09cee28 commit 936b383

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/ops.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Return non-zero if the two parameters are not equal.
311311
## not
312312
* `not_i(int $val)`
313313

314-
Return 1 if `$val` is 0, 1 otherwise.
314+
Return 1 if `$val` is 0, 0 otherwise.
315315

316316
# Array opcodes
317317

@@ -362,7 +362,8 @@ are coerced to the appropriate type.
362362

363363
"Push $v onto the end of @arr."
364364
Bind $v to @arr at the position at the end of @arr, i.e., the position that is just after the last position of @arr that has been bound to.
365-
Return the number of elements of @arr on Parrot, $v on JVM.
365+
366+
Return value is not currently defined.
366367

367368
## pop
368369
* `pop(@arr)`

0 commit comments

Comments
 (0)