Skip to content

Commit

Permalink
renamed Minus with Negative
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Sep 9, 2023
1 parent 9fb2cb5 commit 981cc41
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 196 deletions.
6 changes: 3 additions & 3 deletions iso8601/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func ParseDuration(b []byte) (Duration, error) {
minute int
second int
excessNanoseconds int
minus bool
negative bool
)

if len(b) == 0 {
Expand All @@ -42,7 +42,7 @@ func ParseDuration(b []byte) (Duration, error) {
switch b[0] {
case '+', '-':
if b[0] == '-' {
minus = true
negative = true
}
if len(b[1:]) == 0 {
return Duration{}, &UnexpectedTokenError{
Expand Down Expand Up @@ -320,6 +320,6 @@ func ParseDuration(b []byte) (Duration, error) {
Millisecond: millisec,
Microsecond: microsec,
Nanosecond: nanosec,
Minus: minus,
Negative: negative,
}, nil
}
Loading

0 comments on commit 981cc41

Please sign in to comment.