Skip to content

Commit d161a11

Browse files
committed
datumrange: fix comment in GetRangesBeforeAndAfter
Previously, the string terminator suffix bytes (0 1) are incorrectly padded with zero bytes. This commit is to correct it. Release note: None
1 parent e7ec6cd commit d161a11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/sql/sem/tree/datumrange/range.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ import (
3737
// [\bluejay - \boar] represents the after range.
3838
//
3939
// bear := [18 98 101 97 114 0 1 ]
40-
// => [101 97 114 0 0 0 0 0 ]
40+
// => [101 97 114 0 1 0 0 0 ]
4141
//
4242
// bluejay := [18 98 108 117 101 106 97 121 0 1]
43-
// => [108 117 101 106 97 121 0 0 ]
43+
// => [108 117 101 106 97 121 0 1 ]
4444
//
4545
// boar := [18 98 111 97 114 0 1 ]
46-
// => [111 97 114 0 0 0 0 0 ]
46+
// => [111 97 114 0 1 0 0 0 ]
4747
//
4848
// bobcat := [18 98 111 98 99 97 116 0 1 ]
49-
// => [111 98 99 97 116 0 0 0 ]
49+
// => [111 98 99 97 116 0 1 0 ]
5050
//
5151
// We can now find the range before/after by finding the difference between
5252
// the lower and upper bounds:

0 commit comments

Comments
 (0)