Skip to content

Commit 61e80a0

Browse files
authored
In structures.rakudoc, match semicolon usage to previous example, and reword a sentence (#4701)
* match semicolon usage to previous example * reword sentence for better clarity
1 parent 982e0b6 commit 61e80a0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/Language/structures.rakudoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,18 @@ internal pointer representation are printed. However
4444

4545
for ^2 {
4646
my $list = (1, 1);
47-
say $list.WHICH
47+
say $list.WHICH;
4848
} # OUTPUT: «List|94674814008432␤List|94674814008432␤»
4949

5050
In this case, C<$list> is using the Scalar sigil and thus will be a L<C<Scalar>|/type/Scalar>. Any scalar with the same value will be exactly the same, as shown when printing the pointers.
5151

5252
=head1 Complex data structures
5353

5454
Complex data structures fall in two different broad categories:
55-
L<C<Positional>|/type/Positional>, or list-like and
56-
L<C<Associative>|/type/Associative>, or key-value pair like, according to how you
57-
access its first-level elements. In general, complex data structures, including
55+
L<C<Positional>|/type/Positional> or list-like on the one hand, and
56+
L<C<Associative>|/type/Associative> or key-value pair like on the other hand,
57+
according to how you access its first-level elements.
58+
In general, complex data structures, including
5859
objects, will be a combination of both, with object properties assimilated to
5960
key-value pairs. While all objects subclass L<C<Mu>|/type/Mu>, in general complex objects
6061
are instances of subclasses of L<C<Any>|/type/Any>. While it is theoretically possible to mix

0 commit comments

Comments
 (0)