Skip to content

Commit

Permalink
haxe sort modifies inplace
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Apr 24, 2015
1 parent b5d16e8 commit c4ea310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/rb/_std/Array.hx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extern class Array<T> {
}

inline function sort( f : T -> T -> Int ) : Void {
untyped __pass_block__(this,untyped __js__("sort"),f);
untyped __pass_block__(this,untyped __js__("sort!"),f);
}
inline function splice( pos : Int, len : Int ) : Array<T> {
return untyped __dotcall__(this,"slice!",pos,len);
Expand Down

0 comments on commit c4ea310

Please sign in to comment.