Skip to content

Commit 40eb0cf

Browse files
committed
Fixes errors indicated by @jnthn and reflows
1 parent 6335563 commit 40eb0cf

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

doc/Language/traits.pod6

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ necessary unless you are effectively working with that interface.
4646
4747
The X<Uninstantiable representation trait> is not so much related to the
4848
representation as related to what can be done with an specific class; it
49-
effective prevents the creation of instances of the class via C<new>
49+
effectively prevents the creation of instances of the class in any
50+
possible way.
5051
5152
=begin code
5253
constant @IMM = <Innie Minnie Moe>;
@@ -61,12 +62,18 @@ class don't-instantiate is repr('Uninstantiable') {
6162
say don't-instantiate.imm for ^10;
6263
=end code
6364
64-
Uninstantiable classes can still be used via their class variables and methods, as above. However, trying to instantiate them this way: C<my $do-instantiate = don't-instantiate.new;> will yield the error C<You cannot create an instance of this type (don't-instantiate)>.
65+
Uninstantiable classes can still be used via their class variables and
66+
methods, as above. However, trying to instantiate them this way: C<my
67+
$do-instantiate = don't-instantiate.new;> will yield the error C<You
68+
cannot create an instance of this type (don't-instantiate)>.
6569
6670
=head2 Traits and routines
6771
68-
Traits can be added to the definition of methods and routines to establish L<precedence|/functions#Precedence> and L<associativity|/language/functions#Associativity>. They act as a
69-
L<sub defined using C<trait_mod>|/type/Sub#Traits> which take as argument the types and names of the traits that are going to be added.
72+
Traits can be added to the definition of methods and routines to
73+
establish L<precedence|/functions#Precedence> and
74+
L<associativity|/language/functions#Associativity>. They act as a L<sub
75+
defined using C<trait_mod>|/type/Sub#Traits> which take as argument the
76+
types and names of the traits that are going to be added.
7077
7178
=end pod
7279

0 commit comments

Comments
 (0)