Skip to content

Commit c4a3709

Browse files
authored
Further simplify say line of is rw example in Routine.rakudoc (#4625)
1 parent ed0d8f9 commit c4a3709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Routine.rakudoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ sub walk(\thing, *@keys) is rw {
245245
my %hash;
246246
walk(%hash, 'some', 'key', 1, 2) = 'autovivified';
247247

248-
say %hash;
248+
say %hash<some><key>[1][2];
249249
=end code
250250

251251
produces
252252

253253
=begin code :lang<output>
254-
{some => {key => [(Any) [(Any) (Any) autovivified]]}}
254+
autovivified
255255
=end code
256256

257257
Note that C<return> marks return values as read only; if you need an early exit

0 commit comments

Comments
 (0)