Skip to content

Commit

Permalink
fix typo in Tolerance1 constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed Jul 17, 2024
1 parent 360998d commit 96553ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ For `float64` comparisons functions that accept a `tolerance`, convenience toler
```go
ToleranceExact = float64(0.0)
Tolerance0 = float64(1.0)
Tolerace1 = float64(0.1)
Tolerance1 = float64(0.1)
Tolerance01 = float64(0.01)
Tolerance001 = float64(0.001)
```
Expand Down
3 changes: 2 additions & 1 deletion comp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package libwx
const (
ToleranceExact = float64(0.0)
Tolerance0 = float64(1.0)
Tolerace1 = float64(0.1)
Tolerance1 = float64(0.1)
Tolerance01 = float64(0.01)
Tolerance001 = float64(0.001)
Tolerace1 = Tolerance1 // deprecated; wasa a typo in a previous release
)

func Float64Compare(a, b, tolerance float64) int {
Expand Down

0 comments on commit 96553ed

Please # to comment.