Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[Any-list.pm] removed Int constraint on $num in .pick

  • Loading branch information...
commit 6bf017930e6a020312229abdce7c93bf5ff7f857 1 parent f5065b6
Carl Mäsak authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  src/setting/Any-list.pm
4  src/setting/Any-list.pm
@@ -48,9 +48,9 @@ class Any is also {
48 48
         }
49 49
     }
50 50
 
51  
-    multi method pick(Int $num is copy = 1, :$replace) {
  51
+    multi method pick($num is copy = 1, :$replace) {
52 52
 
53  
-        $num=floor($num);
  53
+        $num .= floor;
54 54
 
55 55
         if ($num == 1) {
56 56
             return @.list[floor(@.list.elems.rand)];

0 notes on commit 6bf0179

Please sign in to comment.
Something went wrong with that request. Please try again.