Skip to content

Commit cf116bb

Browse files
committed
fix compilation issues
1 parent 86fca8d commit cf116bb

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

doc/Language/subscripts.pod6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,10 +854,11 @@ of an object of this type.
854854
=comment When modifying this section, please also adapt the STORE
855855
section in Associative accordingly as they are very similar.
856856
857-
method STORE (::?CLASS:D: values, :$initialize)
857+
method STORE (::?CLASS:D: \values, :$initialize)
858858
859859
This method should only be supplied if you want to support the:
860860
861+
=for code :preamble<role Foo {}>
861862
my @a is Foo = 1,2,3;
862863
863864
syntax for binding your implementation of the C<Positional> role.
@@ -980,10 +981,11 @@ slot of an object of this type.
980981
=comment When modifying this section, please also adapt the STORE
981982
section in Positional accordingly as they are very similar.
982983
983-
method STORE (::?CLASS:D: values, :$initialize)
984+
method STORE (::?CLASS:D: \values, :$initialize)
984985
985986
This method should only be supplied if you want to support the:
986987
988+
=for code :preamble<role Foo {}>
987989
my %h is Foo = a => 42, b => 666;
988990
989991
syntax for binding your implementation of the C<Associative> role.

doc/Type/Associative.pod6

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,23 @@ you use the parametrized version of Associative.
7070
7171
=head2 method AT-KEY
7272
73-
method AT-KEY(key)
73+
method AT-KEY(\key)
7474
7575
Should return the value / container at the given key.
7676
7777
=head2 method EXISTS-KEY
7878
79-
method EXISTS-KEY(key)
79+
method EXISTS-KEY(\key)
8080
8181
Should return a C<Bool> indicating whether the given key actually has a value.
8282
8383
=head2 method STORE
8484
85-
method STORE(values, :$initialize)
85+
method STORE(\values, :$initialize)
8686
8787
This method should only be supplied if you want to support the:
8888
89+
=for code :preamble<role Foo {}>
8990
my %h is Foo = a => 42, b => 666;
9091
9192
syntax for binding your implementation of the C<Associative> role.

doc/Type/Positional.pod6

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,24 @@ Should return the number of available elements in the instantiated object.
2929
3030
=head2 method AT-POS
3131
32-
method AT-POS(position)
32+
method AT-POS(\position)
3333
3434
Should return the value / container at the given position.
3535
3636
=head2 method EXISTS-POS
3737
38-
method EXISTS-POS(position)
38+
method EXISTS-POS(\position)
3939
4040
Should return a C<Bool> indicating whether the given position actually has a
4141
value.
4242
4343
=head2 method STORE
4444
45-
method STORE(values, :$initialize)
45+
method STORE(\values, :$initialize)
4646
4747
This method should only be supplied if you want to support the:
4848
49+
=for code :preamble<role Foo {}>
4950
my @a is Foo = 1,2,3;
5051
5152
syntax for binding your implementation of the C<Positional> role.

0 commit comments

Comments
 (0)