projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Refactored native trait inlining some more - added an optimized path to avoid copying...
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
Method
/
Accessor
/
Native
/
Array
/
sort_in_place.pm
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
b/lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
index
3e14269
..
cde5f64
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
@@
-25,7
+25,7
@@
sub _potential_value {
my ( $self, $slot_access ) = @_;
return
- "( \$_[0] ? sort { \$_[0]->( \$a, \$b ) } \@{ $slot_access } : sort \@{ $slot_access} )";
+ "[ \$_[0] ? sort { \$_[0]->( \$a, \$b ) } \@{ $slot_access } : sort \@{ $slot_access} ]";
}
1;