From: Dave Rolsky Date: Sat, 14 Aug 2010 16:29:30 +0000 (+0200) Subject: Clarify comment after refactoring X-Git-Tag: 1.05~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=736bf1f0c52b34a9a91374d3f090d04d1c311440;p=gitmo%2FClass-MOP.git Clarify comment after refactoring --- diff --git a/lib/Class/MOP/Mixin/HasMethods.pm b/lib/Class/MOP/Mixin/HasMethods.pm index cd11a8f..8e38d5e 100644 --- a/lib/Class/MOP/Mixin/HasMethods.pm +++ b/lib/Class/MOP/Mixin/HasMethods.pm @@ -108,10 +108,10 @@ sub get_method { } ); - # This seems to happen in some weird cases where methods modifiers are - # added via roles or some other such bizareness. Honestly, I don't totally - # understand this, but returning the entry works, and keeps various MX - # modules from blowing up. - DR + # The !$code case seems to happen in some weird cases where methods + # modifiers are added via roles or some other such bizareness. Honestly, I + # don't totally understand this, but returning the entry works, and keeps + # various MX modules from blowing up. - DR return $map_entry if blessed $map_entry && ( !$code || $map_entry->body == $code );