Skip to content

Commit 18f1195

Browse files
committed
Correct documentation of blob8/buf8 read/write-(u)bits
The write-* methods are available on buf8, not blob8. Also correct the version in which they were added, 2019.01 did not come out.
1 parent e09f1db commit 18f1195

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/Type/Blob.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ Defined as:
402402
Returns a native C<num> value for the B<eight> bytes starting at the given
403403
position.
404404
405-
=head1 Methods on blob8 only (6.d, 2019.01 and later)
405+
=head1 Methods on blob8 only (6.d, 2019.03 and later)
406406
407407
=head2 method read-ubits
408408

doc/Type/Buf.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,13 @@ Writes a native C<num64> IEEE floating point value at the given position with
316316
the given endianness.
317317
318318
319-
=head1 Methods on blob8 only (6.d, 2019.01 and later)
319+
=head1 Methods on buf8 only (6.d, 2019.03 and later)
320320
321321
=head2 method write-ubits
322322
323323
Defined as:
324324
325-
method write-ubits(blob8:D: uint $pos, uint $bits, UInt:D $value --> Nil)
325+
method write-ubits(buf8:D: uint $pos, uint $bits, UInt:D $value --> Nil)
326326
327327
Writes an unsigned integer value to the B<bits> from the given B<bit> offset
328328
and given number of bits. The endianness of the bits is assumed to be
@@ -332,7 +332,7 @@ C<BigEndian>. Always returns Nil.
332332
333333
Defined as:
334334
335-
method write-bits(blob8:D: uint $pos, uint $bits, Int:D $value --> Nil)
335+
method write-bits(buf8:D: uint $pos, uint $bits, Int:D $value --> Nil)
336336
337337
Writes a signed integer value for the B<bits> from the given B<bit> offset
338338
and given number of bits. The endianness of the bits is assumed to be

0 commit comments

Comments
 (0)