docs(collections): fix godoc on collections Sequence.Next() (#19154)

This commit is contained in:
Youngtaek Yoon 2024-01-22 23:21:09 +09:00 committed by GitHub
parent 7711baa49f
commit a90b55f63b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ func (s Sequence) Peek(ctx context.Context) (uint64, error) {
}
}
// Next returns the next sequence number, and sets the next expected sequence.
// Next returns the current sequence number, and sets the next expected sequence.
// Errors on encoding issues.
func (s Sequence) Next(ctx context.Context) (uint64, error) {
seq, err := s.Peek(ctx)