Skip to content

Commit 1cc464c

Browse files
author
Jan-Olof Hendig
committed
Changed use of 0FILE to CWD
1 parent bbcafde commit 1cc464c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/IO/Notification.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ C<IO::Notification.watch-path($path)> produces a L<Supply|/type/Supply> of
2020
C<IO::Notification::Change> events for a file or directory.
2121
2222
Here is a small example that prints the first ten FileChanged-notifications for
23-
the current directory:
23+
the current working directory:
2424
2525
=for code :skip-test
2626
my $finish = Promise.new;
2727
my $count = 0;
28-
IO::Notification.watch-path($?FILE).act( -> $change {
28+
IO::Notification.watch-path($*CWD).act( -> $change {
2929
$count++ if $change.event ~~ FileChanged;
3030
say "($count) $change.path(): $change.event()";
3131
$finish.keep if $count >= 10;

0 commit comments

Comments
 (0)