Skip to content

Commit f13ba5d

Browse files
committed
Adds sub as suggested to close #2393
1 parent 3302ebe commit f13ba5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Type/Scalar.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ variables.
8787
CATCH { default { put .^name, ': ', .Str } };
8888
# OUTPUT: «X::Assignment::RO: Cannot modify an immutable Int␤»
8989
90-
=head1 Atomic Operations on Scalar
90+
=head1 Atomic operations on Scalar
9191
9292
A C<Scalar> can have its value changed using a hardware-supported atomic
9393
compare and swap operation. This is useful when implementing lock free data
@@ -157,7 +157,7 @@ Example:
157157
158158
=head1 Routines
159159
160-
=head2 atomic-assign
160+
=head2 sub atomic-assign
161161
162162
Defined as:
163163
@@ -167,7 +167,7 @@ Performs an atomic assignment of C<$value> into the C<Scalar> C<$target>. The
167167
C<atomic-assign> routine ensures that any required barriers are performed such
168168
that the changed value will be "published" to other threads.
169169
170-
=head2 atomic-fetch
170+
=head2 sub atomic-fetch
171171
172172
multi sub atomic-fetch($target is rw)
173173
@@ -191,7 +191,7 @@ It would be legal for a compiler to observe that C<$started> is not updated in
191191
the loop, and so lift the read out of the loop, thus causing the program to
192192
never terminate.
193193
194-
=head2 cas
194+
=head2 sub cas
195195
196196
Defined as:
197197

0 commit comments

Comments
 (0)