Skip to content

Commit

Permalink
Docs: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark authored Jun 26, 2021
1 parent 5b00319 commit e9c1f3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sched/sched.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit e9c1f3f

Please sign in to comment.