Skip to content

Commit

Permalink
tweak example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed May 2, 2024
1 parent 4b20302 commit fd5466a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,18 @@ When making repeated comparisons with the same tolerance, having to pass the tol
For example:

```go
equalityChecker := CurriedFloat64Equal(Tolerance1)
package main

equalityChecker(1.0, 1.1) // => false
equalityChecker(1.0, 1.01) // => true
import (
wx "github.com/cdzombak/libwx"
)

function main() {
equalityChecker := wx.CurriedFloat64Equal(Tolerance1)

equalityChecker(1.0, 1.1) // => false
equalityChecker(1.0, 1.01) // => true
}
```

## License
Expand Down

0 comments on commit fd5466a

Please sign in to comment.