Skip to content

Commit

Permalink
Adds sub as suggested to close #2393
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Nov 3, 2018
1 parent 3302ebe commit f13ba5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/Type/Scalar.pod6
Expand Up @@ -87,7 +87,7 @@ variables.
CATCH { default { put .^name, ': ', .Str } };
# OUTPUT: «X::Assignment::RO: Cannot modify an immutable Int␤»
=head1 Atomic Operations on Scalar
=head1 Atomic operations on Scalar
A C<Scalar> can have its value changed using a hardware-supported atomic
compare and swap operation. This is useful when implementing lock free data
Expand Down Expand Up @@ -157,7 +157,7 @@ Example:
=head1 Routines
=head2 atomic-assign
=head2 sub atomic-assign
Defined as:
Expand All @@ -167,7 +167,7 @@ Performs an atomic assignment of C<$value> into the C<Scalar> C<$target>. The
C<atomic-assign> routine ensures that any required barriers are performed such
that the changed value will be "published" to other threads.
=head2 atomic-fetch
=head2 sub atomic-fetch
multi sub atomic-fetch($target is rw)
Expand All @@ -191,7 +191,7 @@ It would be legal for a compiler to observe that C<$started> is not updated in
the loop, and so lift the read out of the loop, thus causing the program to
never terminate.
=head2 cas
=head2 sub cas
Defined as:
Expand Down

0 comments on commit f13ba5d

Please sign in to comment.