From 1c8f21ebd38434c9a0f5f56b06b98125e2201f66 Mon Sep 17 00:00:00 2001 From: JJ Merelo Date: Thu, 9 Aug 2018 12:31:05 +0200 Subject: [PATCH] Fixed some xt errors --- doc/Type/Attribute.pod6 | 14 ++++++++------ doc/Type/Str.pod6 | 3 +-- htmlify.p6 | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/doc/Type/Attribute.pod6 b/doc/Type/Attribute.pod6 index 924f1a74b..1a6b5c4cf 100644 --- a/doc/Type/Attribute.pod6 +++ b/doc/Type/Attribute.pod6 @@ -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 +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 diff --git a/doc/Type/Str.pod6 b/doc/Type/Str.pod6 index 19a76db1a..0147eb522 100644 --- a/doc/Type/Str.pod6 +++ b/doc/Type/Str.pod6 @@ -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 which represents the original string in the given encoding and normal form. The actual return type is as specific as possible, so diff --git a/htmlify.p6 b/htmlify.p6 index 019cd2243..487a87681 100755 --- a/htmlify.p6 +++ b/htmlify.p6 @@ -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' ) => ,