projects
/
gitmo/Moo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
167455a
)
add comment to _name_coderef
Matt S Trout [Sun, 6 May 2012 18:48:19 +0000 (18:48 +0000)]
lib/Moo/_Utils.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moo/_Utils.pm
b/lib/Moo/_Utils.pm
index
b45b433
..
34aad9a
100644
(file)
--- a/
lib/Moo/_Utils.pm
+++ b/
lib/Moo/_Utils.pm
@@
-67,7
+67,7
@@
sub _install_coderef {
}
sub _name_coderef {
- shift if @_ > 2;
+ shift if @_ > 2; # three args is (target, name, sub)
can_haz_subname ? Sub::Name::subname(@_) : $_[1];
}