Skip to content

Commit 1dc88f2

Browse files
committed
Align subbuf-rw sub declarations.
See issue #1974
1 parent 774789c commit 1dc88f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/Type/Buf.pod6

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ happens from the very beginning of the buffer:
4545
4646
=head2 routine subbuf-rw
4747
48-
sub subbuf-rw(Buf:D $buf, $from, $length?)
48+
Declared as
4949
50-
Returns a writable reference to a part of a buffer. Similar to the C<subbuf-rw> method:
50+
multi sub subbuf-rw(Buf:D \b) is rw
51+
multi sub subbuf-rw(Buf:D \b, Int() $from) is rw
52+
multi sub subbuf-rw(Buf:D \b, $from, $elems) is rw
53+
54+
Returns a writable reference to a part of a buffer.
55+
Invokes the C<subbuf-rw> method on the specified C<Buf>:
5156
5257
my Buf $b .= new(1,2,3);
5358
subbuf-rw($b,2,1) = Buf.new(42);

0 commit comments

Comments
 (0)