Skip to content

Commit 176db5b

Browse files
vbabaninstIncMale
andauthored
Update bson/src/main/org/bson/io/ByteBufferBsonInput.java
Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
1 parent 149f134 commit 176db5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/src/main/org/bson/io/ByteBufferBsonInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private int computeCStringLength(final int prevPos) {
221221
result:
222222
00000000 00000000 10000000 00000000 00000000 00000000 00000000 00000000
223223
^^^^^^^^
224-
The most significant bit is set only at the 0x00 byte position.
224+
The most significant bit is set in each 0x00 byte, and only there.
225225
*/
226226
mask &= 0x8080808080808080L;
227227
if (mask != 0) {

0 commit comments

Comments
 (0)