Skip to content

Commit 4484981

Browse files
committed
Merge pull request #163 from glerchundi/fix-journal-reader-cursor-comments
sdjournal/read: fix comment related to mutually exclusive options
2 parents b9b5f59 + 3dbc52d commit 4484981

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sdjournal/read.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ var (
2929

3030
// JournalReaderConfig represents options to drive the behavior of a JournalReader.
3131
type JournalReaderConfig struct {
32-
// The Since and NumFromTail options are mutually exclusive and determine
33-
// where the reading begins within the journal.
32+
// The Since, NumFromTail and Cursor options are mutually exclusive and
33+
// determine where the reading begins within the journal. The order in which
34+
// options are written is exactly the order of precedence.
3435
Since time.Duration // start relative to a Duration from now
3536
NumFromTail uint64 // start relative to the tail
3637
Cursor string // start relative to the cursor

0 commit comments

Comments
 (0)