Skip to content

Commit

Permalink
Fixes identifiers, closes #2568
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Jan 25, 2019
1 parent a0c7d61 commit b1342b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/Language/syntax.pod6
Expand Up @@ -221,19 +221,19 @@ of comment
say 'code again';
=end code
=head2 X<Identifiers|identifier, identifiers>
=head2 X<Identifiers|identifier,identifiers>
Identifiers are grammatical building blocks that may be used to give a name
to entities/objects such as constants, variables (e.g. Scalars) and routines
(e.g. Subs and Methods). In a L<variable name|/language/variables>, any sigil
to entities/objects such as constants, variables (e.g. C<Scalar>s) and routines
(e.g. C<Sub>s and Methods). In a L<variable name|/language/variables>, any sigil
(and twigil) precedes the identifier and does not form a part thereof.
constant c = 299792458; # identifier "c" names an Int
my $a = 123; # identifier "a" in the name "$a" of a Scalar
sub hello { say "Hello!" }; # identifier "hello" names a Sub
Identifiers come in different forms: ordinary identifiers, extended
identifiers, and compound identifiers.
Identifiers come in different forms: ordinary, extended, and compound
identifiers.
=head3 Ordinary identifiers
Expand Down Expand Up @@ -299,7 +299,7 @@ infix:<*> # the official name of the operator in $a * $b
infix:«<=» # the official name of the operator in $a <= $b
=end code
For all such uses, you can append one or more colon-separated string to an
For all such uses, you can append one or more colon-separated strings to an
ordinary identifier to create a so-called I<extended identifier>. When appended
to an identifier (that is, in postfix position), this colon-separated string
generates unique variants of that identifier.
Expand Down

0 comments on commit b1342b9

Please sign in to comment.