Skip to content

Commit

Permalink
Corrects minor mistakes on DEPRECATED Attributes
Browse files Browse the repository at this point in the history
The previous phrasing made it sound like calling `DEPRECATED` was somehow mandatory for attributes marked as such, which is probably not what is meant.

This patch also corrects the name of a variable used in an example.
  • Loading branch information
jjatria committed Apr 16, 2020
1 parent 4d1bfb4 commit 04965f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Attribute.pod6
Expand Up @@ -347,7 +347,7 @@ If an attribute is marked as C<DEPRECATED>, then calling the C<DEPRECATED>
method is possible and will return C<"something else"> (if no specific reason
was specified) or the string that was specified with the C<DEPRECATED> trait.
If an attribute is B<not> marked as DEPRECATED, one cannot B<not> call the
If an attribute is B<not> marked as DEPRECATED, one B<cannot> call the
C<DEPRECATED> method. Therefore, the C<.?method> syntax should be used.
class Hangout {
Expand All @@ -360,7 +360,7 @@ C<DEPRECATED> method. Therefore, the C<.?method> syntax should be used.
say "Table is deprecated with '$text'";
# OUTPUT:
}
with $attr-table.?DEPRECATED -> $text {
with $attr-bar.?DEPRECATED -> $text {
say "Bar is deprecated with '$text'";
# OUTPUT: «Bar is deprecated with 'the patio'"␤»
}
Expand Down

0 comments on commit 04965f8

Please sign in to comment.