Skip to content

Commit

Permalink
Update docs to fix GH issue 3 on parrot.github.com - outdated example…
Browse files Browse the repository at this point in the history
…s of iterator use.
  • Loading branch information
Util committed Dec 1, 2011
1 parent e95cf3a commit 7d99edd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/pdds/pdd22_io.pod
Expand Up @@ -406,7 +406,7 @@ I/O objects, or an Iterator role applied to I/O objects.]

=begin PIR_FRAGMENT

new $P0, [ 'Iterator' ], $P1
iter $P0, $P1

=end PIR_FRAGMENT

Expand Down
10 changes: 5 additions & 5 deletions docs/user/pir/pmcs.pod
Expand Up @@ -220,14 +220,14 @@ environment variables:
=begin PIR

.sub _ :main
.local pmc env, iter
.local pmc env, it
.local string key, value

env = new 'Env' # line 3
iter = new 'Iterator', env # line 4
it = iter env # line 4
iterloop:
unless iter goto iterend
key = shift iter # line 8
unless it goto iterend
key = shift it # line 8
value = env[key]
print key
print ":"
Expand Down Expand Up @@ -270,7 +270,7 @@ over the command line this same way? Sure!
.sub _ :main
.param pmc args
.local pmc cmdline
cmdline = new 'Iterator', args
cmdline = iter args
loop:
unless cmdline goto end_loop
$S0 = shift cmdline
Expand Down

0 comments on commit 7d99edd

Please sign in to comment.