Skip to content

Commit 062adeb

Browse files
Add comment to (*valueReader).ReadTimestamp()
1 parent dfe5502 commit 062adeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bson/value_reader.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,8 @@ func (vr *valueReader) ReadSymbol() (string, error) {
779779
return s, nil
780780
}
781781

782+
// ReadTimestamp reads a BSON Timestamp value, advancing the reader to the end
783+
// of the Timestamp value.
782784
func (vr *valueReader) ReadTimestamp() (t uint32, i uint32, err error) {
783785
if err := vr.ensureElementValue(TypeTimestamp, 0, "ReadTimestamp"); err != nil {
784786
return 0, 0, err

0 commit comments

Comments
 (0)