We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f28eede commit fb03d02Copy full SHA for fb03d02
pkg/isodate/date.go
@@ -125,8 +125,8 @@ func (p Period) Compare(p2 Period) int {
125
}
126
127
// DivisibleBy returns true if the period is divisible by the smaller period (in days).
128
-func (larger Period) DivisibleBy(smaller Period) (bool, error) {
129
- l := larger.Simplify(true)
+func (p Period) DivisibleBy(smaller Period) (bool, error) {
+ l := p.Simplify(true)
130
s := smaller.Simplify(true)
131
132
if l.IsZero() || s.IsZero() || l.Compare(s) < 0 {
0 commit comments