Skip to content

Commit f0eb22a

Browse files
authored
Merge pull request #4831 from Raku/coke/examples-1
Fix some example compilation tests
2 parents 89e8a2f + 6d4ee16 commit f0eb22a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎doc/Type/Attribute.rakudoc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ error.
8282
has $.a is required
8383
}
8484
my $c = C.new;
85-
CATCH{ default { say .^name, ': ', .Str } }
85+
CATCH { default { say .^name, ': ', .Str } }
8686
# OUTPUT: «X::Attribute::Required: The attribute '$!a' is required, but you did not provide a value for it.␤»
8787

8888
This trait also allows attributes to be typed with types that have a
@@ -104,7 +104,7 @@ class D {
104104
has $.a is required("it is a good idea");
105105
}
106106
my $d = D.new;
107-
CATCH{ default { say .^name, ': ', .Str } }
107+
CATCH { default { say .^name, ': ', .Str } }
108108
# OUTPUT: «X::Attribute::Required: The attribute '$!a' is required because it is a good idea,␤but you did not provide a value for it.␤»
109109
=end code
110110

‎doc/Type/Failure.rakudoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ would be a L<C<Str>|/type/Str> with an error message. A list of payloads is also
7171

7272
my $e = Failure.new(now.DateTime, 'WELP‼');
7373
say $e;
74-
CATCH{ default { say .^name, ': ', .Str } }
74+
CATCH { default { say .^name, ': ', .Str } }
7575
# OUTPUT: «X::AdHoc: 2017-09-10T11:56:05.477237ZWELP‼␤»
7676

7777
=head2 method handled

0 commit comments

Comments
 (0)