Skip to content

Commit 9a5caec

Browse files
authored
Merge pull request #951 from titsuki/fix-type
Fix the example of the Attribute.type method
2 parents d084947 + a8e6e7d commit 9a5caec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Type/Attribute.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ Returns the type constraint of the attribute.
110110
has @.mystery;
111111
}
112112
my @types = TypeHouse.^attributes(:local)[0..2];
113-
for 0..2 { say @types[$_] }
114-
# OUTPUT: «Positional[Int] @!array
115-
# Mu $!scalar
116-
# Positional @!mystery␤»
113+
for 0..2 { say @types[$_].type }
114+
# OUTPUT: «(Positional[Int])
115+
# (Mu)
116+
# (Positional)␤»
117117
118118
=head2 method get_value
119119

0 commit comments

Comments
 (0)