Skip to content

Commit f762bb4

Browse files
committed
Fix some small issues
1 parent 737044a commit f762bb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Bytes result = Bytes.wrap(array1).append("some string");
205205
Bytes.wrap(array).xor(array2); // 0010 0011 xor() 1011 1000 = 1001 1011
206206
Bytes.wrap(array).or(array2); // 0010 0011 or() 1101 0100 = 1111 0111
207207
Bytes.wrap(array).and(array2); // 0010 0011 and() 1011 1000 = 0010 0000
208-
Bytes.wrap(array).negate(); // 0010 0011 negate() = 1101 1100
208+
Bytes.wrap(array).not(); // 0010 0011 negate() = 1101 1100
209209
Bytes.wrap(array).leftShift(8);
210210
Bytes.wrap(array).rightShift(8);
211211
Bytes.wrap(array).switchBit(3, true);

src/main/java/at/favre/lib/bytes/Bytes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static Bytes empty() {
108108
* @return new instance
109109
*/
110110
public static Bytes wrap(Bytes bytes) {
111-
return new Bytes(bytes.internalArray(), bytes.byteOrder);
111+
return wrap(bytes.internalArray(), bytes.byteOrder);
112112
}
113113

114114
/**

0 commit comments

Comments
 (0)