Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small optimisation in creating pairs

No reason to copy things if we can alias them.
  • Loading branch information...
commit 9880c7b2d8fdb446241f35576b435fee2a4f9f13 1 parent d8a0e12
@lizmat lizmat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/core/Any.pm
View
2  src/core/Any.pm
@@ -140,7 +140,7 @@ my class Any {
}
sub RWPAIR(\k, \v) {
- my \p = nqp::create(Pair);
+ my \p := nqp::create(Pair);
nqp::bindattr(p, Enum, '$!key', k);
nqp::bindattr(p, Enum, '$!value', v);
p
Please sign in to comment.
Something went wrong with that request. Please try again.