Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Druid::Base] fixed bitrotted int() -> .Int syntax

  • Loading branch information...
commit 41586e43a4fedcc36e13a01f293eaa431d97bc32 1 parent 16afaed
@masak authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Druid/Base.pm
View
6 lib/Druid/Base.pm
@@ -14,10 +14,10 @@ our $.resign = /^ ['resign' | 'r'] $/; #= A forfeit
#= Returns (zero-based) row and column, given a C<Match> object
method extract-coords(Match $m) {
- # RAKUDO: Hoping these explicit int(...) conversions won't be
+ # RAKUDO: Hoping these explicit (...).Int conversions won't be
# necessary in the long run.
- my Int $row = int($m<row_number> - 1);
- my Int $column = int(ord($m<col_letter>) - ord('a'));
+ my Int $row = ($m<row_number> - 1).Int;
+ my Int $column = (ord($m<col_letter>) - ord('a')).Int;
return ($row, $column);
}
Please sign in to comment.
Something went wrong with that request. Please try again.