Skip to content

Commit

Permalink
Some typo improvements and reflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Jan 21, 2019
1 parent 199fa86 commit cd63d32
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/Type/Any.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -1021,12 +1021,12 @@ Returns an empty List.
Defined as:
method collate(--> Seq)
method collate()
Collate sorts taking into account Unicode grapheme characteristics; that is,
sorting more or less as one would expect instead of using the order in which
their codepoints appear. Collate will behave this way if the object it is
applied to is Iterable.
their codepoints appear. C<collate> will behave this way if the object it is
applied to is C<Iterable>.
=begin code
say ('a', 'Z').sort; # (Z a)
Expand All @@ -1036,7 +1036,7 @@ my %hash = 'aa' => 'value', 'Za' => 'second';
say %hash.collate; # (aa => value Za => second);
=end code
These methods are affected by the X<B<$*COLLATION>|$*COLLATION> variable, which
This method is affected by the X<B<$*COLLATION>|$*COLLATION> variable, which
configures the four X<collation levels>. While the Primary, Secondary and
Tertiary mean different things for different scripts, for the Latin script used
in English they mostly correspond with Primary being Alphabetic, Secondary being
Expand All @@ -1051,6 +1051,8 @@ for B<A> and B<a>:
say 'a' coll 'A'; #OUTPUT: «Same␤»
say ('a','A').collate == ('A','a').collate; # OUTPUT: «True␤»
The variable affects the L<C<coll>|/routine/coll> operator as shown as well as
this method.
=head2 method cache
Expand Down

0 comments on commit cd63d32

Please sign in to comment.