Skip to content

Commit

Permalink
Revert "TWEAK is a submethod, use ! in twigid"
Browse files Browse the repository at this point in the history
This reverts commit 49bf7a2.

This also doesn't work.
  • Loading branch information
coke committed Dec 24, 2021
1 parent 49bf7a2 commit 49314f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/classtut.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ class Str-with-ID is Str {
has Str $.string;
has Int $.ID;
submethod TWEAK() {
$!ID = ++$!counter;
method TWEAK() {
$!ID = $.counter++;
}
}
Expand Down

0 comments on commit 49314f7

Please sign in to comment.