Skip to content

Commit

Permalink
Fixed some xt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Aug 9, 2018
1 parent f3dec65 commit 1c8f21e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 8 additions & 6 deletions doc/Type/Attribute.pod6
Expand Up @@ -67,12 +67,14 @@ compiler 2018.08+):
You can specify a reason why the attribute is required:
class D {
has $.a is required("it is a good idea");
}
my $d = D.new;
CATCH{ default { say .^name, ': ', .Str } }
# OUTPUT: «X::Attribute::Required: The attribute '$!a' is required because it is a good idea,␤but you did not provide a value for it.␤»
=begin code :skip-test<NYI>
class D {
has $.a is required("it is a good idea");
}
my $d = D.new;
CATCH{ default { say .^name, ': ', .Str } }
# OUTPUT: «X::Attribute::Required: The attribute '$!a' is required because it is a good idea,␤but you did not provide a value for it.␤»
=end code
=head2 X<trait is DEPRECATED|trait,is DEPRECATED (Attribute)>
Expand Down
3 changes: 1 addition & 2 deletions doc/Type/Str.pod6
Expand Up @@ -123,8 +123,7 @@ currently erroneously returns the number of codepoints instead.
=head2 method encode
multi method encode(Str:D $encoding = 'utf8', :$replacement,
Bool() :$translate-nl = False, :$strict)
multi method encode(Str:D $encoding = 'utf8', :$replacement, Bool() :$translate-nl = False, :$strict)
Returns a L<Blob> which represents the original string in the given encoding and
normal form. The actual return type is as specific as possible, so
Expand Down
2 changes: 1 addition & 1 deletion htmlify.p6
Expand Up @@ -75,7 +75,7 @@ my %*POD2HTML-CALLBACKS;
my %p5to6-functions;

# TODO: Generate menulist automatically
my @menu; # for use by future menu autogen
my @menu; # for use by future menu autogen
@menu =
('language','' ) => (),
('type', 'Types' ) => <basic composite domain-specific exceptions>,
Expand Down

0 comments on commit 1c8f21e

Please sign in to comment.