We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf7d3d6 commit 560ab8fCopy full SHA for 560ab8f
bson/value.go
@@ -817,7 +817,7 @@ func (v *Value) Timestamp() (uint32, uint32) {
817
if v.data[v.start] != '\x11' {
818
panic(ElementTypeError{"compact.Element.timestamp", Type(v.data[v.start])})
819
}
820
- return binary.LittleEndian.Uint32(v.data[v.offset : v.offset+4]), binary.LittleEndian.Uint32(v.data[v.offset+4 : v.offset+8])
+ return binary.LittleEndian.Uint32(v.data[v.offset+4 : v.offset+8]), binary.LittleEndian.Uint32(v.data[v.offset : v.offset+4])
821
822
823
// TimestampOK is the same as Timestamp, except that it returns a boolean
0 commit comments