Skip to content

Commit 1d48c87

Browse files
authored
Merge pull request #1100 from nicqrocks/master
Edit headers to 'is default' sections
2 parents 97173d2 + dbcefef commit 1d48c87

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/Type/Sub.pod6

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ to it (or even themselves) and we can apply traits to objects at runtime.
6161
&trait_mod:<is>(&bar, :foo);
6262
# OUTPUT«is foo called␤is foo called␤»
6363
64+
=head2 trait is default (Sub class)
65+
6466
There is a special trait for C<Sub>s called C<is default>. This trait is
6567
designed as a way to disambiguate C<multi> function calls that would normally
6668
throw an error because Rakudo would not know which one to use. This means that

doc/Type/Variable.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ introspect and manipulate variables.
2121
2222
Returns the name of the variable, including the sigil.
2323
24-
=head2 trait is default
24+
=head2 trait is default (Variables)
2525
2626
multi sub trait_mod:<is>(Variable:D, :$default!)
2727

0 commit comments

Comments
 (0)