Skip to content

Commit

Permalink
trim -> strip
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Sep 20, 2015
1 parent 2b7ec95 commit a1021fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/rb/_std/StringTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
}

public inline static function ltrim( s : String ) : String {
return untyped __call__("ltrim", s);
return untyped __dotcall__(s, "lstrip");
}

public inline static function rtrim( s : String ) : String {
return untyped __call__("rtrim", s);
return untyped __dotcall__(s, "rstrip");
}

public inline static function trim( s : String ) : String {
return untyped __call__("trim", s);
return untyped __dotcall__(s, "strip");
}

public inline static function rpad( s : String, c : String, l : Int ) : String {
Expand Down

0 comments on commit a1021fd

Please sign in to comment.