Skip to content

Commit 7e91a00

Browse files
committed
Fix categories.
tbrowder++
1 parent 96fcaf2 commit 7e91a00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/classtut.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ my $eat =
7878
$eat.perform();
7979
=end code
8080
81-
X<|classes,state>
81+
X<|Tutorial,class;Tutorial,state>
8282
=head1 X<Class|Tutorial,class;Tutorial,state>
8383
8484
Raku, like many other languages, uses the C<class> keyword to define a
@@ -173,7 +173,7 @@ so external code can modify the value of the attribute.
173173
=for code
174174
has &!callback is built;
175175
176-
X<|traits,is built>
176+
X<|Types,traits;Types,is built>
177177
By default private attributes are not automatically set by the default constructor. (They are private after
178178
all.) In the above example we want to allow the user to provide the initial value but keep the attribute
179179
otherwise private. The C<is built> trait allows to do just that.
@@ -190,7 +190,7 @@ The C<is built> trait was introduced in Rakudo version 2020.01.
190190
191191
=head2 C<is required> trait
192192
193-
X<|traits,is required>
193+
X<|Types,traits;Types,is required>
194194
Providing a value for an attribute during initialization is optional by default. Which in the task example
195195
makes sense for all three, the C<&!callback>, the C<@!dependencies> and the C<$.done> attribute. But lets say
196196
we want to add another attribute, C<$.name>, that holds a tasks name and we want to force the user to
@@ -269,7 +269,7 @@ is used, the variable is visible via their fully qualified name (FQN), while
269269
lexically scoped C<my> variables are "private". This is the exact behavior that
270270
C<my> and C<our> also show in non class context.
271271
272-
X<|static>
272+
X<|Types,static>
273273
I<Class variables> act similarly to I<static> variables in many other programming
274274
languages.
275275

0 commit comments

Comments
 (0)