Skip to content

Commit

Permalink
Fix categories.
Browse files Browse the repository at this point in the history
tbrowder++
  • Loading branch information
coke committed Dec 8, 2022
1 parent 96fcaf2 commit 7e91a00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/Language/classtut.pod6
Expand Up @@ -78,7 +78,7 @@ my $eat =
$eat.perform();
=end code
X<|classes,state>
X<|Tutorial,class;Tutorial,state>
=head1 X<Class|Tutorial,class;Tutorial,state>
Raku, like many other languages, uses the C<class> keyword to define a
Expand Down Expand Up @@ -173,7 +173,7 @@ so external code can modify the value of the attribute.
=for code
has &!callback is built;
X<|traits,is built>
X<|Types,traits;Types,is built>
By default private attributes are not automatically set by the default constructor. (They are private after
all.) In the above example we want to allow the user to provide the initial value but keep the attribute
otherwise private. The C<is built> trait allows to do just that.
Expand All @@ -190,7 +190,7 @@ The C<is built> trait was introduced in Rakudo version 2020.01.
=head2 C<is required> trait
X<|traits,is required>
X<|Types,traits;Types,is required>
Providing a value for an attribute during initialization is optional by default. Which in the task example
makes sense for all three, the C<&!callback>, the C<@!dependencies> and the C<$.done> attribute. But lets say
we want to add another attribute, C<$.name>, that holds a tasks name and we want to force the user to
Expand Down Expand Up @@ -269,7 +269,7 @@ is used, the variable is visible via their fully qualified name (FQN), while
lexically scoped C<my> variables are "private". This is the exact behavior that
C<my> and C<our> also show in non class context.
X<|static>
X<|Types,static>
I<Class variables> act similarly to I<static> variables in many other programming
languages.
Expand Down

1 comment on commit 7e91a00

@tbrowder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously I still don’t know how to fix these kinds of conflicts. Next time I’ll close the PR and start all over again.

Please sign in to comment.