Skip to content

Commit 6483f94

Browse files
authored
use a better sub name
1 parent 392d834 commit 6483f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/mop.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ For example:
1616
1717
=begin code
1818
my $arr = [1, 2];
19-
sub foo($arr) {
19+
sub show-type($arr) {
2020
my $typ = $arr.WHAT.^name;
2121
say $typ;
2222
}
23-
foo $arr; # OUTPUT: «Array␤»
23+
show-type $arr; # OUTPUT: «Array␤»
2424
=end code
2525
2626
To get a more in-depth understanding of the meta object for a C<class>, here is an example

0 commit comments

Comments
 (0)