Skip to content

Commit

Permalink
Fixes missed and doubtful sentence cases on Language docs
Browse files Browse the repository at this point in the history
These are sentence cases I was less sure of as wasn't sure whether to consider things like "List Separator" as pronoun. Hopefully digestible enough for someone to consider in this separate commit.

Also a couple that I noticed I missed whilst looking at those.
  • Loading branch information
Moray committed Aug 7, 2018
1 parent 9087e95 commit e364a5d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/Language/5to6-nutshell.pod6
Expand Up @@ -533,7 +533,7 @@ Unchanged:
=item C«== != < > <= >=» Numeric comparisons
=item C<eq ne lt gt le ge> String comparisons
=head2 C<,> (Comma) List Separator
=head2 C<,> (Comma) List separator
Unchanged, but note that in order to flatten an array variable to a list (in
order to append or prefix more items) one should use the C<|> operator
Expand Down Expand Up @@ -568,8 +568,8 @@ depend on the types of both arguments, and those rules are far from
identical in Perl 5 and Perl 6. See L<~~|/routine/~~> and
L<the smartmatch operator|/language/operators#index-entry-smartmatch_operator>
=head2 C<& | ^> String Bitwise ops
=head2 C<& | ^> Numeric Bitwise ops
=head2 C<& | ^> String bitwise ops
=head2 C<& | ^> Numeric bitwise ops
=head2 C<& | ^> Boolean ops
In Perl 5, C<& | ^> were invoked according to the contents of their
Expand Down Expand Up @@ -665,7 +665,7 @@ my $result = $score > 60 ? 'Pass' : 'Fail'; # Perl 5
=for code :preamble<my $score>
my $result = $score > 60 ?? 'Pass' !! 'Fail'; # Perl 6
=head2 C<.> (Dot) String Concatenation
=head2 C<.> (Dot) String concatenation
Replaced by the tilde.
Expand All @@ -676,7 +676,7 @@ $food = 'grape' . 'fruit'; # Perl 5
=for code :preamble<no strict;>
$food = 'grape' ~ 'fruit'; # Perl 6
=head2 C<x> List Repetition or String Repetition operator
=head2 C<x> List repetition or string repetition operator
In Perl 5, C<x> is the Repetition operator, which behaves differently in
scalar or list contexts:
Expand All @@ -702,7 +702,7 @@ Mnemonic: C<x> is short and C<xx> is long, so C<xx> is the one used for lists.
@ones = 5 xx @ones; # Parentheses no longer needed
=head2 C<..> C<...> Two Dots or Three Dots, Range op or Flipflop op
=head2 C<..> C<...> Two dots or three dots, range op or flipflop op
In Perl 5, C<..> was one of two completely different operators, depending
on context.
Expand All @@ -719,7 +719,7 @@ In Perl 5, C<"${foo}s"> deliminates a variable name from regular text next to
it. In Perl 6, simply extend the curly braces to include the sigil too:
C<"{$foo}s">. This is in fact a very simple case of interpolating an expression.
=head1 Compound Statements
=head1 Compound statements
These statements include conditionals and loops.
Expand Down Expand Up @@ -907,7 +907,7 @@ while (my ($k, $v) = each(%hash)) { ... } # Perl 5
=for code :preamble<no strict;>
for %hash.kv -> $k, $v { ... } # Perl 6
=head2 Flow Control statements
=head2 Flow control statements
Unchanged:
Expand Down Expand Up @@ -1005,7 +1005,7 @@ say "element exists" if exists $array[$i]; # Perl 5
=for code :preamble<no strict;>
say "element exists" if @array[$i]:exists; # Perl 6 - use :exists adverb
=head1 Regular Expressions ( Regex / Regexp )
=head1 Regular expressions ( regex / regexp )
=head2 Change C<=~> and C<!~> to C<~~> and C<!~~> .
Expand Down

0 comments on commit e364a5d

Please sign in to comment.