Skip to content

Commit c401786

Browse files
committed
Remove WHAT, since we already have name
This code isn't showing the difference between what and name, it's just a laundry list.
1 parent bf10033 commit c401786

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/Language/classtut.pod6

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,9 @@ we can ask it a few questions:
806806
my Programmer $o .= new;
807807
if $o ~~ Employee { say "It's an employee" };
808808
say $o ~~ GeekCook ?? "It's a geeky cook" !! "Not a geeky cook";
809-
say $o.WHAT;
809+
say $o.^name;
810810
say $o.perl;
811811
say $o.^methods(:local)».name.join(', ');
812-
say $o.^name;
813812
=end code
814813
815814
The output might look like this:

0 commit comments

Comments
 (0)