Permalink
Browse files

correct code comment

  • Loading branch information...
dwarring committed Oct 12, 2017
1 parent b63da2a commit abefd37aba1864ba088a2a17d665f176f3ac5814
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/Language/nativecall.pod6
@@ -416,7 +416,7 @@ Pointers can also be updated to reference successive elements in the array:
# show differences between successive points
for 1 ..^ $n {
my Point $lo = $elem.deref;
++$elem; # equivalent to $elem.add(1);
++$elem; # equivalent to $elem = $elem.add(1);
my Point $hi = (++$elem).deref;
my $dx = $hi.x = $lo.x;
my $dy = $hi.y = $lo.y;

0 comments on commit abefd37

Please sign in to comment.