diff --git a/sdjournal/journal.go b/sdjournal/journal.go index 5a2c288b..c61a2025 100644 --- a/sdjournal/journal.go +++ b/sdjournal/journal.go @@ -946,7 +946,7 @@ func (j *Journal) SeekHead() error { } // SeekTail may be used to seek to the end of the journal, i.e. the most recent -// available entry. This call must be followed by a call to Next before any +// available entry. This call must be followed by a call to Previous before any // call to Get* will return data about the last element. func (j *Journal) SeekTail() error { sd_journal_seek_tail, err := getFunction("sd_journal_seek_tail") diff --git a/sdjournal/journal_test.go b/sdjournal/journal_test.go index 5205c7c8..925dd6c4 100755 --- a/sdjournal/journal_test.go +++ b/sdjournal/journal_test.go @@ -96,8 +96,8 @@ func TestJournalWait(t *testing.T) { if err := j.SeekTail(); err != nil { t.Fatalf("Error seeking to tail: %s", err) } - if _, err := j.Next(); err != nil { - t.Fatalf("Error retrieving next entry: %s", err) + if _, err := j.Previous(); err != nil { + t.Fatalf("Error retrieving previous entry: %s", err) } var t1, t2 time.Time