Skip to content

Commit fd8dc4f

Browse files
committed
refine documentation
1 parent 49bfd84 commit fd8dc4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quartz/cron.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func NewCronTriggerWithLoc(expression string, location *time.Location) (*CronTri
6868
fields[0].values, _ = fillRangeValues(0, 59)
6969
}
7070

71-
// tzPasses determines the number of iterations required when calculating the next
71+
// tzPasses determines the number of maximum iterations when calculating the next
7272
// fire time. Two iterations are used for time zones with Daylight Saving Time
7373
// (DST) to resolve ambiguities caused by clock adjustments. UTC requires only
7474
// one iteration as it's unaffected by DST.
@@ -92,8 +92,8 @@ func (ct *CronTrigger) NextFireTime(prev int64) (int64, error) {
9292
// Initialize a CronStateMachine from the previous fire time and cron fields.
9393
csm := newCSMFromFields(prevTime, ct.fields)
9494

95-
// Iterate ct.tzPasses times to determine the correct next scheduled fire time.
96-
// This accounts for complexities like Daylight Saving Time (DST) transitions.
95+
// Determine the correct next scheduled fire time. The ct.tzPasses iterations
96+
// account for complexities like Daylight Saving Time (DST) transitions.
9797
for i := 0; i < ct.tzPasses; i++ {
9898
nextDateTime := csm.NextTriggerTime(ct.location)
9999
if nextDateTime.After(prevTime) {

0 commit comments

Comments
 (0)