Skip to content

Commit 40cd8da

Browse files
committed
Minor grammar and reflow
1 parent 4831e9a commit 40cd8da

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/Language/typesystem.pod6

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,17 @@ compiler will check at the end of the current scope if the type is defined.
138138
139139
=head2 C<class>
140140
141-
The C<class> declarator creates a compile time construct that is compiled
142-
into a type object. The latter is a simple Perl 6 object and provides methods
143-
to construct instances by executing initializers and sub methods to fill all
144-
attributes declared in a class and any parent class with values. Initializers
141+
The C<class> declarator creates a compile time construct that is compiled into a
142+
type object. The latter is a simple Perl 6 object and provides methods to
143+
construct instances by executing initializers and sub methods to fill all
144+
attributes declared in a class, and any parent class, with values. Initializers
145145
can be provided with the declaration of attributes or in constructors. It's the
146146
responsibility of the L<Metamodel::ClassHOW|/type/Metamodel::ClassHOW> to know
147147
how to run them. This is the only magic part of building objects in Perl 6. The
148-
default parent type is C<Any> which in turn inherits from C<Mu>. The latter
148+
default parent type is C<Any>, which in turn inherits from C<Mu>. The latter
149149
provides the default constructor C<.new> which is named like this by convention.
150-
Aside from this, C<.new> does not carry any special meaning nor is treated in a
151-
special way.
150+
Aside from this, C<.new> does not carry any special meaning nor is treated in
151+
any special way.
152152
153153
For more information how to use classes see the L<Classes and objects|/language/classtut>
154154
tutorial.
@@ -520,7 +520,7 @@ there may be performance implications, hence the pragmas.
520520
say $s.mark
521521
# OUTPUT: «answer␤»
522522
523-
There are little limitations of what can be done inside the class fragment. One of
523+
There are few limitations of what can be done inside the class fragment. One of
524524
them is the redeclaration of a method or sub into a multi. Using added
525525
attributes is not yet implemented. Please note that adding a multi candidate
526526
that differs only in its named parameters will add that candidate behind the

0 commit comments

Comments
 (0)