Skip to content

Commit 000e37c

Browse files
authored
use buffer instead of byteBuffer in README
The method to turn Bytes into a ByteBuffer is called `buffer`, not `byteBuffer`
1 parent 8a74c6b commit 000e37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ Conversion to [`InputStream`](https://docs.oracle.com/javase/7/docs/api/java/io/
498498

499499
```java
500500
Bytes.wrap(array).inputStream();
501-
Bytes.wrap(array).byteBuffer();
501+
Bytes.wrap(array).buffer();
502502
```
503503

504504
If you just want a duplicated instance, sharing the same array:

0 commit comments

Comments
 (0)