Skip to content

Instantly share code, notes, and snippets.

@niner
Created August 12, 2015 18:16
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 niner/fe8f0f4df17f84d7e0d5 to your computer and use it in GitHub Desktop.
Save niner/fe8f0f4df17f84d7e0d5 to your computer and use it in GitHub Desktop.
diff --git a/src/core/Any-iterable-methods.pm b/src/core/Any-iterable-methods.pm
index 653505d..c363301 100644
--- a/src/core/Any-iterable-methods.pm
+++ b/src/core/Any-iterable-methods.pm
@@ -108,7 +108,7 @@ augment class Any {
nqp::if(
nqp::eqaddr($result, IterationEnd),
nqp::stmts(
- ($value = $!source.pull-one()),
+ ($value := $!source.pull-one()),
($redo = 1 unless nqp::eqaddr($value, IterationEnd))
))
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment