Skip to content

Commit 1dca24e

Browse files
committed
reverted =begin code because it casued html generation error
1 parent abdd691 commit 1dca24e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lib/Language/classtut.pod

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,16 @@ external code can modify to change the value of the attribute.
171171
Perl6 has no B<static> keyword. Anyway any class may declare anything that
172172
module can so making a scoped variable sounds like good idea.
173173
174-
=begin code
175-
class Singleton {
176-
177-
my Singleton $instance;
178-
method new {!!!} # Singleton.new dies.
179-
submethod instance {
180-
$instance = Singleton.bless unless $instance;
181-
$instance;
174+
175+
class Singleton {
176+
my Singleton $instance;
177+
method new {!!!} # Singleton.new dies.
178+
submethod instance {
179+
$instance = Singleton.bless unless $instance;
180+
$instance;
182181
}
183-
}
184-
=end code
182+
}
183+
185184
186185
Class attributes defined by L<my> or L<our> may also be initialized while
187186
declaration but we are implementing Singleton pattern here and object must

0 commit comments

Comments
 (0)