Skip to content

Instantly share code, notes, and snippets.

@timo
Created August 26, 2017 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/805ace7f4fbd7d88a596c8f4473adc2a to your computer and use it in GitHub Desktop.
Save timo/805ace7f4fbd7d88a596c8f4473adc2a to your computer and use it in GitHub Desktop.
diff --git a/src/core/Rakudo/Iterator.pm b/src/core/Rakudo/Iterator.pm
index cf27db9..3cfd522 100644
--- a/src/core/Rakudo/Iterator.pm
+++ b/src/core/Rakudo/Iterator.pm
@@ -3061,7 +3061,7 @@ class Rakudo::Iterator {
}
# Return an iterator that only will return the two given values.
- method TwoValues(\val1, \val2) {
+ method TwoValues(Mu \val1, Mu \val2) {
class :: does Iterator {
has Mu $!val1;
has Mu $!val2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment