File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ In this example we are watching two supplies.
328
328
329
329
my $bread-supplier = Supplier.new;
330
330
my $vegetable-supplier = Supplier.new;
331
-
331
+
332
332
my $supply = supply {
333
333
whenever $bread-supplier.Supply {
334
334
emit("We've got bread: " ~ $_);
@@ -338,7 +338,7 @@ In this example we are watching two supplies.
338
338
};
339
339
}
340
340
$supply.tap( -> $v { say "$v" });
341
-
341
+
342
342
$vegetable-supplier.emit("Radish"); # OUTPUT: «We've got a vegetable: Radish»
343
343
$bread-supplier.emit("Thick sliced"); # OUTPUT: «We've got bread: Thick sliced»
344
344
$vegetable-supplier.emit("Lettuce"); # OUTPUT: «We've got a vegetable: Lettuce»
Original file line number Diff line number Diff line change @@ -805,7 +805,7 @@ rules.
805
805
806
806
grammar G { }
807
807
808
- Several packages may be declared in a single file. However, you can declare a C < unit > package
808
+ Several packages may be declared in a single file. However, you can declare a C < unit > package
809
809
at the start of the file (preceded only by comments or C < use > statements), and the
810
810
rest of the file will be taken as being the body of the package. In this case, the curl brackets are not required.
811
811
You can’t perform that action at this time.
0 commit comments