From e9c1f3f0261fb0fb2ac7ca5f12d01a1122ba637c Mon Sep 17 00:00:00 2001 From: Roman Sharkov Date: Sat, 26 Jun 2021 03:54:18 +0200 Subject: [PATCH] Docs: Fix typos --- sched/sched.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sched/sched.go b/sched/sched.go index a72020a..030dca1 100644 --- a/sched/sched.go +++ b/sched/sched.go @@ -80,7 +80,7 @@ func Len() int { return DefaultScheduler.Len() } -// Offset returns the scheduler's time offset +// Offset returns the scheduler's time offset. func Offset() time.Duration { return DefaultScheduler.Offset() } @@ -112,7 +112,7 @@ func New(timeOffset Duration) *Scheduler { } } -// NewWithProvider is similar to New but replaces the default time provider +// NewWithProvider is similar to New but replaces the default time provider. func NewWithProvider( timeOffset Duration, p TimeProvider, @@ -232,7 +232,7 @@ func (s *Scheduler) AdvanceToNext() (newOffset, advancedBy Duration) { return s.timeOffset, by } -// Offset returns the scheduler's time offset +// Offset returns the scheduler's time offset. func (s *Scheduler) Offset() time.Duration { s.lock.RLock() defer s.lock.RUnlock()