Skip to content

Commit

Permalink
Revise for #2632
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Mar 2, 2019
1 parent 3e2c9c9 commit bc53761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/Language/create-cli.pod6
Expand Up @@ -264,7 +264,7 @@ X<|USAGE>X<|$*USAGE>
If no multi candidate of C<MAIN> is found for the given command line
parameters, the sub C<USAGE> is called. If no such method is found,
the compiler will output a default generated usage message.
the compiler will output a default usage message.
#|(is it the answer)
multi MAIN(Int $i) { say $i == 42 ?? 'answer' !! 'dunno' }
Expand Down
7 changes: 3 additions & 4 deletions doc/Type/Attribute.pod6
Expand Up @@ -249,9 +249,8 @@ Defined as:
multi sub trait_mod:<is> (Attribute:D $attr, :$rw!)
Marks an attribute as read/write as opposed to the default
C<readonly>. The default accessor for the attribute will return a
writable value.
Marks an attribute as read/write as opposed to the default C<readonly>. The
default accessor for the attribute will return a writable value.
class Boo {
has $.bar is rw;
Expand All @@ -273,7 +272,7 @@ Defined as
Returns the name of the type followed by the name of the attribute.
=for code
class Hero {
class Hero {
has @!inventory;
has Str $.name;
submethod BUILD( :$name, :@inventory ) {
Expand Down

0 comments on commit bc53761

Please sign in to comment.